Path: utzoo!attcan!uunet!cs.utexas.edu!rutgers!att!cbnewsl!coco From: coco@cbnewsl.ATT.COM (felix.a.lugo) Newsgroups: comp.sys.amiga.tech Subject: Re: What should be in future SKsh versions? Message-ID: <3108@cbnewsl.ATT.COM> Date: 1 Dec 89 03:47:42 GMT References: <4638@sugar.hackercorp.com> Organization: AT&T Bell Laboratories Lines: 47 >> In article <13920021@hpfelg.HP.COM> koren@hpfelg.HP.COM (Steve Koren) writes: >> > You can do that, too. Use something like: >> >> > alias ls='$(which ls)' >> >> I hope this is a typo. Please tell me you don't to variable expansion inside >> single-quotes. >> -- >> Peter "Have you hugged your wolf today" da Silva >> `-_-' >> 'U` "Really, a video game is nothing more than a Skinner box." >> -- Peter Merel >> .... Earth to Peter ... Earth to Peter ... 8^) First, I create an alias: alias test='$(which ls)' Let's see!!! I type "alias (set -a)" (quotes not included) and I get . . . test = $(which ls) . . . (No variable expansion, as was expected). Now, if I type "which ls" (again, quotes not included), I get sys:bin/ls [ sys:bin is where I keep "ls" ] If I type "$(which ls) -a", I get a Usage message from the "ls" command under sys:bin. With me so far???!! Now I type "test -a". I got the same Usage message!!! What could all this mean? That Steve Koren knows his stuff!!! 8^) Good job Steve!!!!!!!! ______________ Felix A. Lugo coco@ihlpy.att.com att!ihlpy!coco