Re: Syntax error: Bad substitution

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

 



On 10/30/06, Ralph Alvy <ralvy@xxxxxxxxxxxx> 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.

--
mitu
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Console]     [Linux Audio]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Camping]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Samba]     [Linux Media]     [Fedora Users]

  Powered by Linux