From: "H. Peter Anvin" <hpa@zytor.com>
To: Bill Maas <bill@stsx.org>
Cc: dash list <dash@vger.kernel.org>
Subject: Re: Shell source with relative pathname does not work
Date: Sun, 27 Apr 2008 13:18:26 -0700 [thread overview]
Message-ID: <4814DF92.9070604@zytor.com> (raw)
In-Reply-To: <1209326269.14798.4.camel@aurora.internal>
Bill Maas wrote:
>
> I'm very sorry, but I obviously missed a crucial point here: the shell
> _searches_ the PATH for an executable file to be sourced. I'm still not
> convinced about the need for (and security of) such a feature, however..
>
POSIX.1:2004:
If file does not contain a slash, the shell shall use the search path
specified by PATH to find the directory containing file. Unlike normal
command search, however, the file searched for by the dot utility need
not be executable. If no readable file is found, a non-interactive shell
shall abort; an interactive shell shall write a diagnostic message to
standard error, but this condition shall not be considered a syntax error.
-hpa
prev parent reply other threads:[~2008-04-27 20:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-27 7:53 Shell source with relative pathname does not work Bill Maas
2008-04-27 11:54 ` Oleg Verych
2008-04-27 12:19 ` executing with Bash (Re: Shell source with relative pathname does not work) Oleg Verych
2008-04-27 19:41 ` Shell source with relative pathname does not work Bill Maas
2008-04-27 19:57 ` Bill Maas
2008-04-27 20:18 ` H. Peter Anvin [this message]
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=4814DF92.9070604@zytor.com \
--to=hpa@zytor.com \
--cc=bill@stsx.org \
--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