🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #2481

Re: What should be in future SKsh versions?

#2481
From: felix.a.lugo
Date: Fri, 01 Dec 1989 03:47
47 lines
1563 bytes
>> 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 <peter@sugar.hackercorp.com>
>> `-_-'
>>  'U` "Really, a video game is nothing more than a Skinner box."
>>        -- Peter Merel <pete@basser.oz>
>> 

	.... 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
Technical Details
Message-ID: <3108@cbnewsl.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!rutgers!att!cbnewsl!coco
References: <4638@sugar.hackercorp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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