From: Eric Blake <eblake@redhat.com>
To: chet.ramey@case.edu, Alexander Huemer <alexander.huemer@xx.vu>
Cc: dash@vger.kernel.org
Subject: Re: Replacement for declare in dash?
Date: Wed, 16 Oct 2013 08:41:15 -0600 [thread overview]
Message-ID: <525EA58B.9050804@redhat.com> (raw)
In-Reply-To: <525E9FF6.60401@case.edu>
[-- Attachment #1: Type: text/plain, Size: 782 bytes --]
On 10/16/2013 08:17 AM, Chet Ramey wrote:
> On 10/16/13 8:18 AM, Alexander Huemer wrote:
>> Hi,
>>
>> I wrote a shell script on a non-Debian system and assumed, in my
>> greenness, that testing it with #!/bin/bash --posix would ensure that
>> the script would run under dash too. I was wrong. Of course that is the
>> fault of bash and not dash.
>
> Maybe you should have verified your assumptions first. That is simply not
> what the --posix option does. Posix mode makes bash a superset of Posix;
> it's not a nothing-but-what-posix-specifies mode.
If you want a shell that does nothing-but-what-posix-specifies, use posh
from the Debian project.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 621 bytes --]
next prev parent reply other threads:[~2013-10-16 14:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-16 12:18 Replacement for declare in dash? Alexander Huemer
2013-10-16 13:09 ` Guido Berhoerster
2013-10-16 14:17 ` Chet Ramey
2013-10-16 14:41 ` Eric Blake [this message]
2013-10-16 15:34 ` Alexander Huemer
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=525EA58B.9050804@redhat.com \
--to=eblake@redhat.com \
--cc=alexander.huemer@xx.vu \
--cc=chet.ramey@case.edu \
--cc=dash@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox