James Carlson wrote:
> Carol Fields writes:
>> James Carlson wrote:
>>> Don Cragun writes:
>>>>    /usr/gnu/bin/awk
>>>>    (symlink to ../../bin/gawk)
>>> Why is there no /usr/gnu/bin/iawk or /usr/gnu/bin/pawk?  Are the
>>> [ip]gawk variants Solaris-specific?
>>>
>> In /usr/bin, the component package installs awk which is a symlink to gawk.
>> Because GNU /usr/bin/awk conflicts with Solaris /usr/bin/awk, the symlink
>> /usr/gnu/bin/awk will be installed.  The component package doesn't install
>> /usr/bin/iawk or /usr/bin/pawk; there is no conflict, and
>> neither /usr/gnu/bin/iawk nor /usr/gnu/bin/pawk will be installed.
> 
> If avoiding a conflict for 'awk' is the only intent, then why are
> these installed as 'igawk' and 'pgawk'?  Why do they need 'g' as well?

On OpenSolaris, the files will be installed with the same name as in the
component package, with the exception of the conflicting command 'awk'.
This maintains the consistency and familiarity of the component package.
The component package installs in /usr/bin :
awk -> gawk
igawk
pgawk

Because awk conflicts with Solaris /usr/bin/awk, the symlink
/usr/gnu/bin/awk -> ../../bin/gawk
will be installed on OpenSolaris.

> 
> I don't understand what the GNU environment is supposed to look like
> here.  What I *think* I see is that a standard Solaris user will see
> these:
> 
>       gawk
>       igawk
>       pgawk

Correct.

> 
> A GNU environment (/usr/gnu/bin first on PATH) will see this these
> things as GNU awk:
> 
>       awk
>       igawk
>       pgawk

Correct.

> 
> The question is this: why does the GNU user see 'awk' as expected,
> without having to type 'g' to get it, but then has to add in a
> superfluous 'g' in order to access those other two variants?
> 
> Is this inconsistent layout (with "awk" plus "[ip]gawk") common on
> other GNU distributions?

Yes, on Ubuntu, /usr/bin/igawk and /usr/bin/pgawk are installed, and
there is no /usr/bin/iawk nor /usr/bin/pawk.

-- Carol

> 


Reply via email to