This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: IO Redirection
Robert Mark Bram wrote:
>
> Thanks for the reply!
>
> > > How do I append error output?
> > > How do I append error and standard output?
> >
> > Just as you have written?
> > ">>" appends, ">" write to a new file, independend of the file
> > or source selected. That is, "&>>file" appends both.
> >
> > Why is that not obvious ?
>
> This is why:
>
> Robert Mark Bram@DIJONG ~
> $ ls
> errors script1 script2 temp
>
> Robert Mark Bram@DIJONG ~
> $ ls &>> temp
> bash: syntax error near unexpected token `&>>'
try
ls >> temp 2>&1
Cheers
Don Sharp
>
> Robert Mark Bram@DIJONG ~
> $
>
> Rob
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/