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 -- http://www.fastmail.com - Or how I learned to stop worrying and love email again ------------------------------------------------------------------------------ _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users