Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh not accepting commandline args at end of command
- X-seq: zsh-users 6795
- From: Eric Smith <es@xxxxxxxxxxxx>
- To: zsh users <zsh-users@xxxxxxxxxx>
- Subject: Re: zsh not accepting commandline args at end of command
- Date: Wed, 19 Nov 2003 18:42:34 +0100
- In-reply-to: <1031119173112.ZM11485@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20031119171554.GC31842@xxxxxxxxxxxx> <1031119173112.ZM11485@xxxxxxxxxxxxxxxxxxxxxxx>
Nope according to this:
[eric@apple ~] $ which ls
/bin/ls
[eric@apple ~] $ ls /tmp -f
ls: -f: No such file or directory
/tmp:
ssh-XXUIWy1q v235390
[eric@apple ~] $ exit
back to bash:
eric@apple:~$ which ls
/bin/ls
eric@apple:~$ ls /tmp -f
./ ../ .X11-unix/ .font-unix/ ssh-XXUIWy1q/ .X0-lock v235390/
Some differences in strace FWIW:
zsh:
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff8cc, 30, (nil), 0}) = 0
brk(0) = 0x805774c
brk(0x807874c) = 0x807874c
brk(0) = 0x807874c
brk(0x8079000) = 0x8079000
ioctl(1, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, 0x5413, {ws_row=48, ws_col=126, ws_xpixel=1022, ws_ypixel=766}) = 0
stat64("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
stat64("-f", 0x8057898) = -1 ENOENT (No such file or directory)
lstat64("-f", 0x8057898) = -1 ENOENT (No such file or directory)
write(2, "ls: ", 4ls: ) = 4
write(2, "-f", 2-f) = 2
bash:
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff9ac, 30, (nil), 0}) = 0
brk(0) = 0x805774c
brk(0x807874c) = 0x807874c
brk(0) = 0x807874c
brk(0x8079000) = 0x8079000
ioctl(1, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, 0x5413, {ws_row=48, ws_col=126, ws_xpixel=1022, ws_ypixel=766}) = 0
stat64("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a directory)
open("/tmp", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
Bart Schaefer said:
> On Nov 19, 6:15pm, Eric Smith wrote:
> }
> } What might be causing this error in zsh.
>
> I suspect you have an alias, or function wrapper, for 'ls'. Works for me
> with 'zsh -f'.
--
Eric Smith
Messages sorted by:
Reverse Date,
Date,
Thread,
Author