Martin Bähr
<[EMAIL PROTECTED]>
writes:
Hi Martin,
>> the solution is to execute the loop in a separate subshell like this:
>
> hmm, instead of a subshell, shouldn't wrapping it in () be enough?
That was my first thought, too, but something like
(while true; echo Foo; sleep 1; end) | cat
gives an error:
fish: Illegal command name “(while true; echo Foo; sleep 1; end)”
Anyway, as Axel said a macro for "run the commands in a subshell" would
be nice, because fish -c 'c1; c2; ...; cn;' can't make use of syntax
highlighting and indentation an editor offers.
Bye,
Tassilo
--
Nothing can escape the gravity of a black hole, except for Chuck
Norris. Chuck Norris eats black holes. They taste like chicken.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users