bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: posix command search and execution


From: Chet Ramey
Subject: Re: posix command search and execution
Date: Fri, 10 Nov 2023 20:07:31 -0500
User-agent: Mozilla Thunderbird

On 11/9/23 11:17 AM, Mike Jonkmans wrote:
On Thu, Nov 09, 2023 at 10:12:06PM +0700, Robert Elz wrote:
     Date:        Thu, 9 Nov 2023 14:21:35 +0100
     From:        Mike Jonkmans <bashbug@jonkmans.nl>
     Message-ID:  <20231109132135.GA208484@jonkmans.nl>

   | If I am not mistaken, for POSIX compliance, both /bin and /usr/bin have
   | to be in PATH (see quote from Robert).

No, I didn't say that, there are no particular required directory
names, just that PATH needs to include whatever directories contain
all the standard utilities ... getconf() returns that path.

I used those names just as an example.

Ah, that is clear then.
On Ubuntu 22.04 `getconf path' returns /bin:/usr/bin
and these are symlinked.

Then that's an issue to take up with Debian/Ubuntu, right? If they're
symlinked by the distro, then getconf PATH should only return one of them.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]