Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh not accepting commandline args at end of command



> The command syntax is
>                 ls [-ABCFGHLPRTWZabcdfghiklmnopqrstuwx1] [file ...]
>
> The parameters are positional, with the options first and the operands
> second.
> The "-F" is treated as a file name, hence "no such file."
>
> This is true for both the BSD and SystemV versions of ls.
>

My thought : ls uses getopt(3)

Extract from man getopt(3) :
ENVIRONMENT VARIABLES
  POSIXLY_CORRECT
  If this is set, then option processing stops as soon as a non-option
argument is encountered.
--
Julien CROUZET




Messages sorted by: Reverse Date, Date, Thread, Author