[Top][All Lists]

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

Re: env (GNU coreutils) 5.93 patch

From: Paul Eggert
Subject: Re: env (GNU coreutils) 5.93 patch
Date: Tue, 03 Jan 2006 10:12:46 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

>> On Solaris 10, the standard location is /usr/xpg4/bin/env.
>> (/usr/bin/env doesn't conform to POSIX, I guess....)
> I have a hard time imagining in what way /usr/bin/env would not
> conform to POSIX.

On Solaris 10, /usr/bin/env invokes /usr/bin/sh, which does not
conform to POSIX in several important respects, e.g., it lacks shell
functions.  For the purpose of this discussion, though, I hope the
differences don't matter.  /usr/xpg4/bin/env invokes /usr/xpg4/bin/sh,
which does conform.

If you're curious about portability issues, Solaris 10
/usr/xpg4/bin/sh is the Korn shell -- but it is not identical to
/usr/bin/ksh!  (That would be too easy.)  Solaris 10 has three
distinct versions of ksh installed: /usr/bin/ksh, /usr/xpg4/bin/sh,
and /usr/dt/bin/dtksh.  No two are the same, but the first two are
quite close (both are ksh88) whereas the latter one is quite different
(it's ksh93).

reply via email to

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