View Single Post
  #4   (View Single Post)  
Old 28th June 2010
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Quote:
Originally Posted by Carpetsmoker View Post
I know I can copy stdout to stderr, but that's not what I want.
I think you're saying that
$ echo something >&2
is not what you want. Can you eleaborate on why you don't want it?

Note that if other redirections are around, then maybe grouping
$ { echo something >&2 ; }
or a subshell
$ ( echo something >&2 )
might help.
Reply With Quote