On Tue, Aug 22, 2006 at 06:05:34PM +0200, Axel Liljencrantz wrote: > The major snag I see is with whitespace sensitivity. While fish allows > you to have a space after the '>', you can't have one before:
yes, that's not nice. > >uniform would be: > >&2>&1 > >but that's ugly because of the & > > More uniform, yes. But the extra '&' doesn't disambiguate anything actually it does, because it would solve the above mentioned spacing problem: echo foo >bar #Write foo to file bar echo foo > file #Write foo to file bar echo &foo >bar #Write newline, redirect fd named foo to file bar echo &foo > bar #Write newline, redirect fd named foo to file bar note that this actually does not work with & but would need adifferent character to be unambigous since the above is currently: write newline in background, redirect output from foo to bar using something else would solve this: echo :foo >bar #Write newline, redirect fd named foo to file bar echo :foo > bar #Write newline, redirect fd named foo to file bar > The operators that are already taken _might_ be possible to overload > in a non-ambigous fashion, but I'd rather not. agreed, note that & is also an overload, i'd like to see that reduced greetings, martin. -- cooperative communication with sTeam - caudium, pike, roxen and unix offering: programming, training and administration - anywhere in the world -- pike programmer travelling and working in europe open-steam.org unix system- bahai.or.at iaeste.(tuwien.ac|or).at administrator (caudium|gotpike).org is.schon.org Martin Bähr http://www.iaeste.or.at/~mbaehr/ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
