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

Re: zsh not accepting commandline args at end of command



On 19 Nov, 2003, at 12:32, Eric Smith wrote:
But is weems to be using the same ls
[eric@apple ~]  $ which ls
/bin/ls
[eric@apple ~]  $ /bin/ls /tmp -F
/bin/ls: -F: No such file or directory
/tmp:
ssh-XXUIWy1q  v235390
[eric@apple ~]  $ exit

now in bash:
eric@apple:~$ /bin/ls /tmp -F
ssh-XXUIWy1q/  v235390/

The command results from bash are simply wierd.

Using
GNU bash, version 2.05b.0(1)-release (powerpc-apple-darwin7.0)

ls /tmp -F
generates exactly the same output as does zsh or tcsh (all without initialization files).
              ls: -F: No such file or directory

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.


T.T.F.N.
William H. Magill
# Beige G3 - Rev A motherboard - 768 Meg
# Flat-panel iMac (2.1) 800MHz - Super Drive - 768 Meg
# PWS433a [Alpha 21164 Rev 7.2 (EV56)- 64 Meg]- Tru64 5.1a
magill@xxxxxxxxxxxxxxxxx
magill@xxxxxxx
magill@xxxxxxx



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