From: Chet Ramey <chet.ramey@case.edu>
To: Alexander Huemer <alexander.huemer@xx.vu>
Cc: dash@vger.kernel.org, chet.ramey@case.edu
Subject: Re: Replacement for declare in dash?
Date: Wed, 16 Oct 2013 10:17:26 -0400 [thread overview]
Message-ID: <525E9FF6.60401@case.edu> (raw)
In-Reply-To: <20131016121859.GA30169@yade.xx.vu>
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.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
next prev parent reply other threads:[~2013-10-16 14:23 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 [this message]
2013-10-16 14:41 ` Eric Blake
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=525E9FF6.60401@case.edu \
--to=chet.ramey@case.edu \
--cc=alexander.huemer@xx.vu \
--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 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.