Path: 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 > 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