On 2009-0505 09:25:41, Martin Costabel wrote:
> OTOH, those $REDIRECT constructs are  
> still present in 2.3.99, and I am not sure why this then works for Mario.

it is possible that they don't work but that they are never activated
and thus don't cause a problem.  I was about to file a bug on abcde on
Debian to point out that there's some dead code in the script but then
got stuck on how to file the bug since the script does work on debian...

>   ls . asdf 2>file >&2
> works as expected (i.e. writes both stdout and stderr into "file"), but
>   REDIR=">&2"
>   ls . asdf 2>file $REDIR
> gives the error '>&2: No such file or directory'.
> 
> I wonder what version of bash debian uses so that this works.

well, on debian this redirection does not work either...

ma...@croese:~/temp/temp$ rm *
ma...@croese:~/temp/temp$ ls
ma...@croese:~/temp/temp$ ls . asdf 2>file >&2
ma...@croese:~/temp/temp$ cat file 
ls: cannot access asdf: No such file or directory
.:
file
ma...@croese:~/temp/temp$ REDIR=">&2"
ma...@croese:~/temp/temp$ ls . asdf 2>file $REDIR
.:
file
ma...@croese:~/temp/temp$ cat file 
ls: cannot access asdf: No such file or directory
ls: cannot access >&2: No such file or directory
ma...@croese:~/temp/temp$ 

Mario

-- 
Outside of a dog, a book is man's best friend. 
Inside of a dog it's too dark to read.
-- Groucho Marx.

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to