[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Usr/bin/env
From: |
Tapani Tarvainen |
Subject: |
Re: Usr/bin/env |
Date: |
Sun, 15 Aug 2021 08:12:15 +0300 |
On Sat, Aug 14, 2021 at 01:08:48PM -0500, Eric Blake (eblake@redhat.com) wrote:
> > > "Sh" is a shell chosen. But if I wanted to know more about
> > > this directory, "/usr/bin/env", what is this concept's original location?
> > > Does this filesystem structure go back to Unix?
> >
> > Yes. More specifically, BSD version 4.4. Since then it has been
> > adopted by just about all Unix-like operating systems, including
> > Gnu/Linux and MacOS, and standardized by POSIX.
>
> Not quite. POSIX has standardized the 'env' utility, but NOT the file
> name '/usr/bin/env'.
Right you are. Thank you.
> It is possible to have a POSIX-compliant system that lacks
> /usr/bin/env. But in practice, you'll be hard-pressed to find such a
> system in the wild.
Yes. And if you do, I suspect you'll have other, probably worse
portability problems than the shell's location.
--
Tapani Tarvainen