Of, I have added a patch to the Darcs version of fish which changes the syntax of 'and' and 'or' to:
make; and make install; or make uninstall
I've also added a patch that gives more helpful error messages when trying to use Posix short circut operators:
[EMAIL PROTECTED] ~/c/c/fish_current> pwd || whoami
fish: Expected a command string, got token of type 'Pipe'.
pwd || whoami
^
[EMAIL PROTECTED] ~/c/c/fish_current> pwd && whoami
~/code/c/fish_current
fish: Expected a command string, got token of type 'Run job in background'.
pwd && whoami
^
Job 0, 'pwd &' has ended
[EMAIL PROTECTED] ~/c/c/fish_current>
You will notice in the above example that 'pwd && whoami'
actually launches 'pwd &' in the background. Maybe fish should do a
syntax check on the whole commandline and reject all of it instead?
--
Axel
- [Fish-users] 'and' and 'or' now use infix syntax Axel Liljencrantz
