Daniel Colascione wrote:
> Hey. I'm trying fish out, and it seems pretty neat so far. What I like most
> is the sane variable expansion syntax compared to bourne-derived shells.
> But I need to be able to do everything under fish I can do under bash, and
> there seems to be a deficiency in IO redirection.
>
> Under bash,
>
> head -1 /etc/passwd czxv 2>/tmp/bar  | sort
> will put, in /tmp/bar,
>
> head: cannot open `czxv' for reading: No such file or directory
>
> But under fish, the same command line just truncates /tmp/bar and discards
> stderr from head.

IIRC Fish uses (at least, supplies) some made-up syntax,
^ where you might use 2>

head -1 /etc/passwd czxv ^/tmp/bar  | sort

... but I guess 2> should work too...

-Isaac



------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to