> X-Original-To: ksh93-integration-discuss at opensolaris.org
> Delivered-To: ksh93-integration-discuss at opensolaris.org
> Date: Tue, 16 May 2006 01:16:06 +0200
> From: Roland Mainz <roland.mainz at nrubsig.org>
> X-Accept-Language: en
> MIME-Version: 1.0
> To: Korn Shell 93 integration/migration project discussion 
<ksh93-integration-discuss at opensolaris.org>
> Subject: Re: [ksh93-integration-discuss] Solaris "/usr/bin/uname -a" vs.  
ksh93builtin "uname -a" ...
> Content-Transfer-Encoding: 7bit
> X-ID: rIZj3yZAZevREAc8k3-eLtN73pYA-8skb8G0wDxH7gCh3pHqfG4q6Y at t-dialin.net
> X-TOI-MSGID: 106bcc7a-64ae-4de8-95ab-b8032e64efb5
> Cc: ast-users at research.att.com
> X-BeenThere: ksh93-integration-discuss at opensolaris.org
> X-Mailman-Version: 2.1.4
> List-Id: Korn Shell 93 integration/migration project discussion 
<ksh93-integration-discuss.opensolaris.org>
> List-Unsubscribe: 
<http://mail.opensolaris.org/mailman/listinfo/ksh93-integration-discuss>, 
<mailto:ksh93-integration-discuss-request at 
opensolaris.org?subject=unsubscribe>
> List-Archive: 
<http://mail.opensolaris.org/pipermail/ksh93-integration-discuss>
> List-Post: <mailto:ksh93-integration-discuss at opensolaris.org>
> List-Help: 
<mailto:ksh93-integration-discuss-request at opensolaris.org?subject=help>
> List-Subscribe: 
<http://mail.opensolaris.org/mailman/listinfo/ksh93-integration-discuss>, 
<mailto:ksh93-integration-discuss-request at opensolaris.org?subject=subscribe>
> 
> Joerg Schilling wrote:
> > Roland Mainz <roland.mainz at nrubsig.org> wrote:
> > 
> > > Mhhh... would it be a good idea to make a standalone wrapper (e.g. |int
> > > main(int ac, char **av, char **env) { return b_uname(ac, av, env); }|)
> > > around the ksh93 builtin and stuff it into /usr/xpg4/bin/ ? That may be
> > > a cheap way to get a POSIX-conformant "uname" into that directory... :-)
> > 
> > Why do you believe that /usr/bin/uname is not POSIX compliant?
> 
> Let me re-phrase that statement: "... a cheap way to get a version of
> 'uname' into that directory which does not have Solaris-specific
> extensions (e.g. allows the creation of portable scripts without the
> risk of falling into the 'OS-specific-extension'-trap again)". Better ?
> :-)

If you are suggesting creating a new /usr/xpg4/bin/uname in Solaris/OpenSolaris
source, I don't think this is a good idea.  /usr/xpg4/bin was intended
for commands which have standards-enforced behavior which is incompatible
with the corresponding /usr/bin behavior.  It is not intended to be 
a place where a second version of a standards-compliant uname can reside.

        April
> 
> ----
> 
> Bye,
> Roland
> 
> -- 
>   __ .  . __
>  (o.\ \/ /.o) roland.mainz at nrubsig.org
>   \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
>   /O /==\ O\  TEL +49 641 7950090
>  (;O/ \/ \O;)
> _______________________________________________
> ksh93-integration-discuss mailing list
> ksh93-integration-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/ksh93-integration-discuss


Reply via email to