Re: dash-as-bin-sh

2010-04-27 Thread Chris Davies
> "set" works for ksh, bash, and dash. On (at least) Solaris 9 & 10 and > Debian. Is that enough? Wes Garland wrote: > That was my first thought, except dash only lists variables and not > functions. Interestingly, dash seems to keep functions and variables in > separate namespaces -- this must

Re: dash-as-bin-sh

2010-04-22 Thread Vincent Lefevre
On 2010-04-20 11:37:31 -0400, Wes Garland wrote: > > Bash is still an essential package last I checked. You might simply use > > /bin/bash and whatever bash-isms you like. > > > That would work pretty much everywhere except bone-stock Solaris, > where I have no possibility of recovery -- "/bin/bas

Re: dash-as-bin-sh

2010-04-21 Thread Wes Garland
Hi, Chris! On Wed, Apr 21, 2010 at 4:55 AM, Chris Davies wrote: > If you write your script portably it will work with /bin/sh, for many > values of sh. If you rely on features of ksh or bash you should specify > one of those shells on the #! line. > Of course, you're right about portability -- I

Re: dash-as-bin-sh

2010-04-21 Thread Chris Davies
Wes Garland wrote: > 2 - Is there way to detect that a script is running as dash, instead of a > shell like Solaris' /bin/sh If you write your script portably it will work with /bin/sh, for many values of sh. If you rely on features of ksh or bash you should specify one of those shells on the #!

Re: dash-as-bin-sh

2010-04-20 Thread Wes Garland
Hi, Boyd! On Tue, Apr 20, 2010 at 11:18 AM, Boyd Stephen Smith Jr. < b...@iguanasuicide.net> wrote: > > Not portably. It might be possible by parsing ($SHELL -V -c 'exit 123') or > ($SHELL --version -c 'exit 123'). > Say, that's a clever approach, thanks for suggesting it. Sorry, I don't even

Re: dash-as-bin-sh

2010-04-20 Thread Boyd Stephen Smith Jr.
On Tuesday 20 April 2010 09:57:14 Wes Garland wrote: > 1 - I there a better place to get help with dash Not that I know of. However, dash is fairly plain when it comes to POSIX- compliant shells. It handles the stuff POSIX requires it to plus the "local" keyword (which Debian requires of it) an

dash-as-bin-sh

2010-04-20 Thread Wes Garland
Hi, List! I have a few simple questions for you: 1 - I there a better place to get help with dash 2 - Is there way to detect that a script is running as dash, instead of a shell like Solaris' /bin/sh 3 - Corollary to #2, can I expect dash-as-sh to by a hard link or a sym link? (I would think no

Re: XF86 4.3.0-3 uninstallable (but only with dash as /bin/sh)

2004-03-04 Thread Paul Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Mar 04, 2004 at 12:19:16PM +0100, Rapha?l Berbain wrote: > Paul Johnson <[EMAIL PROTECTED]> writes: > > > Not only is it not installable, but I'm entirely stumped about how to > > proceed, so I'll let the transcript speak for itself and see if