> "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
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
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
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 #!
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
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
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
-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
8 matches
Mail list logo