Path: utzoo!utgpu!cs.utexas.edu!samsung!rex!ukma!usenet.ins.cwru.edu!odin!chet From: chet@odin.INS.CWRU.Edu (Chet Ramey) Newsgroups: alt.sources.d Subject: Re: Multiple executables in path (Was: NON-SOURCE POSTINGS CONSIDERED HARMFUL!) Message-ID: <1991Jan23.144156.5842@usenet.ins.cwru.edu> Date: 23 Jan 91 14:41:56 GMT References: <5570@idunno.Princeton.EDU> <1991Jan22.220246.9920@usenet.ins.cwru.edu> <5612@idunno.Princeton.EDU> Sender: news@usenet.ins.cwru.edu Reply-To: chet@po.CWRU.Edu Organization: Case Western Reserve Univ. Cleveland, Ohio, (USA) Lines: 21 Nntp-Posting-Host: odin.ins.cwru.edu Paul Falstad replied to a posting of mine: >The ~ is expanded only for the first component in the PATH, not for the >remaining components. Bash handles this fine, of course, but execlp >does not. You're right, of course. I had changed bash a while back to be more like ksh-86, which expanded tildes after colons when doing tilde expansion, but have since backed that change out after deciding it wasn't Posix compliant. (The ksh book says ksh88 doesn't expand tildes after colons, but I have no way to check that.) It might be better to expand tildes after colons, but bash is doing exactly what the documentation says it does. Chet -- Chet Ramey ``There's just no surf in Network Services Group Cleveland, U.S.A. ...'' Case Western Reserve University chet@ins.CWRU.Edu My opinions are just those, and mine alone.