You are right. I did a copy/paster mistake, sorry. Maxim
On Tue, 25 Aug 2015 16:26:48 +0300, Greg Reagle <greg.rea...@umbc.edu> wrote: > On Tue, Aug 25, 2015, at 03:32 AM, Maxim Gonchar wrote: >> 3) Using 'test' command syntax: >> if test $i = "." -o test $i = ".."; end > > This is incorrect. When using the and (-a) and or (-o) operators of the > test command, you do not repeat the 'test' command--you use it only > once. For example: > if test $i = "." -o $i = ".." ; echo special; end > > There is an alternative syntax for the test command using brackets which > is pretty: > if [ $i = "." -o $i = ".." ] ; echo special; end ------------------------------------------------------------------------------ _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users