bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: sed


From: Matthew Woehlke
Subject: Re: sed
Date: Wed, 14 Feb 2007 11:16:23 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061206 Thunderbird/1.5.0.9 Mnenhy/0.7.4.0

Stephane Chazelas wrote:
On Tue, Feb 13, 2007 at 03:14:59PM -0600, Matthew Woehlke wrote:
[...]
The Bourne shell is a legacy shell, just as the Thomson shell
was before it. You don't need to make scripts portable to that
shell anymore unless you want to support 15 year old systems,
Funny, I wasn't aware that Solaris 10 is "15 years old" already. (Though why Sun is keeping good old broken Bourne alive is beyond me.)

You may be looking at the wrong sh. Solaris's sh is in
/usr/xpg4/bin. The one in /bin or /usr/bin is a legacy one for
backward compatibility. "getconf PATH" on Solaris does return
/usr/xpg4/bin before /usr/bin.

Yup, I know that... and your next comment explains why.

What is a pity is that the $PATH is not the default in most
Solaris deployments.

A shortcoming of POSIX/SUS is that they don't define a standard
way to put yourself into a conformant environments (for
instance, the #! is non-standard).

Right. And if you use '#!/bin/bash' on Solaris, you're screwed. I'll stick to writing /portable/ scripts, thank you.

At any rate, I'll concede your point on "standard" vs "portable". However, some of us don't have the luxury of 100% POSIX compliant environments. (I still have to deal with nsr-tandem-nsk!)

Sure, but the best way to move things forward is to use the
standard syntax in one's scripts.

The best way would be for Sun to join the rest of the world in having a compliant /bin/sh :-).

--
Matthew
<insert witty signature here>





reply via email to

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