From: Eric Blake <eblake@redhat.com>
To: Jason Miller <jason@milr.com>, dash@vger.kernel.org
Subject: Re: command lookup and POSIX
Date: Fri, 07 Mar 2014 14:53:38 -0700 [thread overview]
Message-ID: <531A3FE2.8050109@redhat.com> (raw)
In-Reply-To: <20140307194318.GA2317@home.jasonmmiller.org>
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
On 03/07/2014 12:43 PM, Jason Miller wrote:
> Reading this:
>
> http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_09_01_01
>
> Any built-in other than the special built-ins, or listed in the table
> there should not be run unless it is present in the PATH.
>
> dash however doesn't follow that:
>
> PS1="% " dash
>
> % PATH=
Stop right there.
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08
"If PATH is unset or is set to null, the path search is
implementation-defined."
Therefore, you have triggered implementation-defined behavior, rather
than exposing a bug in dash.
--
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: 604 bytes --]
next prev parent reply other threads:[~2014-03-07 21:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-07 19:43 command lookup and POSIX Jason Miller
2014-03-07 21:53 ` Eric Blake [this message]
2014-03-07 22:48 ` Jason Miller
2014-03-07 23:44 ` Eric Blake
2014-03-08 17:22 ` Paul Gilmartin
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=531A3FE2.8050109@redhat.com \
--to=eblake@redhat.com \
--cc=dash@vger.kernel.org \
--cc=jason@milr.com \
/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.