From: Eric Blake <ebb9@byu.net>
To: dash@vger.kernel.org
Subject: bug with $? after .
Date: Thu, 9 Jul 2009 21:09:11 +0000 (UTC) [thread overview]
Message-ID: <loom.20090709T210608-909@post.gmane.org> (raw)
According to POSIX, the status of . shall be 0 if no command was executed during
the sourced script. Therefore, this is a bug:
$ dash -c 'false; . /dev/null; echo $?'
1
and should be fixed to output 0.
--
Eric Blake
next reply other threads:[~2009-07-10 1:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-09 21:09 Eric Blake [this message]
2009-08-31 11:28 ` bug with $? after Eric Blake
2009-08-31 11:51 ` Herbert Xu
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=loom.20090709T210608-909@post.gmane.org \
--to=ebb9@byu.net \
--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