🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ?? Bug In SKSH ??????

#6938
From: Steve Koren
Date: Thu, 22 Nov 1990 05:33
29 lines
1346 bytes
> I have found what I also believe to be a bug in SKsh.

> I have my path set to

> ".,lc:,uucp:c"

> with the command compress in uucp:c and the command touch in lc:

> now I go into a directory with an executable called compress and
> an executable called touch.

> if I type compress it uses my compress in the current directory.
> if I type touch it uses touch in the lc: directory.

I bet it doesn't!  See below...

> Both are executable, and which tells me it should execute the
> command from the current directory.

> if I use ./touch it works.  any ideas?

Yup. SKsh has a builtin called touch which takes precidence over
any external binary of that name.  You can change this multiple ways;
one is to alias touch to $(which touch).  Another is to "unset" it as
a builtin.  When you said "./touch" you told it to use the one in 
the current directory, ignoring any builtin or other binary elsewhere
in the path.

   - steve
Technical Details
Message-ID: <11640026@hpfcdc.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!rutgers!ucsd!sdd.hp.com!hplabs!hpfcso!hpfcdc!koren
References: <0093FFDD.98022880@lne.kth.se>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!rutgers!ucsd!sdd.hp.com!hplabs!hpfcso!hpfcdc!koren
From: koren@hpfcdc.HP.COM (Steve Koren)
Newsgroups: comp.sys.amiga.tech
Subject: Re: ?? Bug In SKSH ??????
Message-ID: <11640026@hpfcdc.HP.COM>
Date: 22 Nov 90 05:33:19 GMT
References: <0093FFDD.98022880@lne.kth.se>
Organization: HP Fort Collins, Co.
Lines: 29