From: Mike McCarty <Mike.McCarty@sbcglobal.net>
To: linux-msdos@vger.kernel.org
Subject: Re: Syntax error: Bad substitution
Date: Wed, 01 Nov 2006 12:01:46 -0600 [thread overview]
Message-ID: <4548E10A.50203@sbcglobal.net> (raw)
In-Reply-To: <f1de940b0610312244h33206446kd66271b672401d34@mail.gmail.com>
Cristi Mitrana wrote:
> On 10/30/06, Ralph Alvy <ralvy@warpmail.net> wrote:
>
>> Cristi Mitrana wrote:
>
> [..]
>
>> >
>> > That is because the new Ubuntu release uses dash instead of bash for
>> > /bin/sh and hence all bash constructs are not supported.
>> >
>> Isn't that a rather severe change?
>>
>
> It is actually, since dash is just a minimal POSIX shell without all
> the features that bash has it.
> Any script that uses bash constructs should have #!/bin/bash at the
> beginning instead of #!/bin/sh. It's more of an annoyance this days,
> at least on linux, because bash is always available in any distro and
> it is the default shell.
Umm, I believe that all current releases of Linux have
$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Oct 20 2004 /bin/sh -> bash
AND bash also behaves somewhat differently when invoked
as sh.
IMO, use of bash-specific features in released scripts is
a bad idea, anyway. It results in extra maintenance.
Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!
next prev parent reply other threads:[~2006-11-01 18:01 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-28 3:32 Syntax error: Bad substitution Ralph Alvy
2006-10-28 6:22 ` Ralph Alvy
2006-10-28 16:57 ` Ralph Alvy
2006-10-28 22:56 ` Matthew Clarke
2006-10-29 0:14 ` Ralph Alvy
2006-10-29 0:41 ` Matthew Clarke
2006-10-29 1:17 ` Ralph Alvy
2006-10-29 10:26 ` Bart Oldeman
2006-10-29 17:08 ` Ralph Alvy
2006-10-29 17:24 ` Ralph Alvy
2006-10-30 11:08 ` Cristi Mitrana
2006-10-30 21:14 ` Ralph Alvy
2006-11-01 6:44 ` Cristi Mitrana
2006-11-01 18:01 ` Mike McCarty [this message]
2006-11-08 16:23 ` Ralph Alvy
2006-11-08 18:28 ` Bart Oldeman
2006-11-08 20:07 ` Ralph Alvy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4548E10A.50203@sbcglobal.net \
--to=mike.mccarty@sbcglobal.net \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.