zsh-users
 help / color / mirror / code / Atom feed
From: Eric Smith <es@fruitcom.com>
To: zsh users <zsh-users@sunsite.dk>
Subject: Re: zsh not accepting commandline args at end of command
Date: Wed, 19 Nov 2003 18:42:34 +0100	[thread overview]
Message-ID: <20031119174234.GE31842@fruitcom.com> (raw)
In-Reply-To: <1031119173112.ZM11485@candle.brasslantern.com>

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


      reply	other threads:[~2003-11-19 17:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-19 17:15 Eric Smith
2003-11-19 17:23 ` Miek Gieben
2003-11-19 17:26 ` Clint Adams
2003-11-19 17:26 ` Peter Stephenson
2003-11-19 17:32   ` Eric Smith
2003-11-19 17:53     ` Aidan Kehoe
2003-11-19 18:42     ` Peter Stephenson
2003-11-20  3:31     ` William H. Magill
2003-11-20 17:13       ` Julien CROUZET
2003-11-19 17:31 ` Bart Schaefer
2003-11-19 17:42   ` Eric Smith [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031119174234.GE31842@fruitcom.com \
    --to=es@fruitcom.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).