SPUG:Re: don't recurse on alias expansion

Michael R. Wolf MichaelRunningWolf at att.net
Thu Jan 23 19:33:28 CST 2003


Jeremy Mates <jmates at sial.org> writes:

> * Michael R. Wolf <MichaelRunningWolf at att.net>
> > Korn shell does it by quoting the name.  Any quoting mechanism
> > (single, double, backslash) on the name prevents alias substitution.
> > That's the idea.  Since I don't have a ksh handy, I haven't tested
> > this.
> > 
> >     alias cd='\cd "$@" && ls'
> 
> Goes wonky for me with the public domain ksh that ships with
> OpenBSD; appeared to be working for a bit, but fails in unexpected
> and strange ways.

Would it be "Breakfast Club" that has me ask "Can you describe the
strange and unexpected ways?"?

-- 
Michael R. Wolf
    All mammals learn by playing!
        MichaelRunningWolf at att.net




More information about the spug-list mailing list