# redirect just standard error into a pipeline
exec 3>&1
process 2>&1 >&3 3>&- | timestamper >>error-log

# What's going on here is that first we save a copy of the real stdout on file descriptor 3, and then in the command itself we:
#
#   send stdout to the timestamper process (remember, pipelines are set up before redirection)
#   redirect stderr to stdout, which is the pipeline
#   redirect stdout to fd 3, which is our original stdout
#   close fd 3 so that process does not inherit a surprise file descriptor.
#
# (We must save the original stdout separately via exec because of the pipeline vs redirection timing issue; if we wrote 'process 3>&1 ...' we would be capturing the pipe'd stdout, not the original stdout.)
