From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28460 invoked from network); 7 Nov 1997 15:38:37 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 7 Nov 1997 15:38:37 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id KAA18999; Fri, 7 Nov 1997 10:34:19 -0500 (EST) Resent-Date: Fri, 7 Nov 1997 10:33:47 -0500 (EST) Message-Id: <199711071533.QAA05401@hydra.ifh.de> To: Timothy J Luoma , zsh-users@math.gatech.edu (Zsh users list) Subject: Re: confusion over the proper way to make an alias In-reply-to: "Timothy J Luoma"'s message of "Fri, 07 Nov 1997 09:54:47 MET." <199711071454.JAA15523@luomat.peak.org> Date: Fri, 07 Nov 1997 16:33:34 +0100 From: Peter Stephenson Resent-Message-ID: <"3f_H.0.od4.QJpOq"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1133 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Timothy J Luoma wrote: > > I have been setting up a new zsh account on a LINUX machine running ZSH > 3.0.3 and found that I could not use: > > alias ls="ls $LS_OPTIONS" > > I had to use > > alias ls="command ls $LS_OPTIONS" > > or else I got the 'job table full' message mentioned in the FAQ. That means you have function, as well as an alias, defined to ls(). It's possible to have both, but only the function can fill your job table and needs the `command ls' inside it. (Also, remember the catch: if you define an alias for ls, and the function next with 'ls() {...}', the alias gets expanded in the definition, causing havoc.) > I went to my NeXT machine running 3.0.5 and found that if I used: > > alias ls="command ls $LS_OPTIONS" > > I got: > /usr/local/gnu/bin/ls: ls: No such file or directory This should certainly work. I can only think of checking paths, value of $LS_OPTIONS, symbolic links, everything you've probably thought of. -- Peter Stephenson Tel: +49 33762 77366 WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413 Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen DESY-IfH, Platanenallee 6, 15738 Zeuthen, Germany.