Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: [News] A Look at Debian Squeeze

Homer wrote:

> Verily I say unto thee, that Chris Ahlstrom spake thusly:
>> After takin' a swig o' grog, Homer belched out this bit o' wisdom:
>>> Verily I say unto thee, that Chris Ahlstrom spake thusly:
>>> 
>>>>    The Debian Almquist Shell (dash) will become the standard
>>>>    shell that should, among other things, help with faster
>>>>    bootups.
>>>>
>>>> Oh, I see, it executes scripts faster than bash and depends on
>>>> fewer libraries.
>>> 
>>> It also lacks certain bash builtins, such as "let", and therefore
>>> causes no end of confusion for Ubuntu and Debian users trying to
>>> use scripts built for other systems (as I discovered recently).
>> 
>> Yeah.  It is all too easy to fall into bashisms for system scripts!
> 
> Here's a non-exhaustive list of other gotchas:
> 
> https://wiki.ubuntu.com/DashAsBinSh
> 
Am I missing something? Wouldn't putting this #!/bin/bash as the first line
in a script and setting the x bit with chmod guarantee that the script runs
as bash and not dash? (not using sh) Then we could use all the bashisms we
know and love. ;) couldn't we?
Attila

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index