From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: PATH_DIRS
Date: Fri, 11 Aug 2017 09:12:23 -0700 [thread overview]
Message-ID: <b1d7a71e-2468-3518-ef6f-d53601c45691@eastlink.ca> (raw)
In-Reply-To: <1852003c-c07c-dc61-b863-007f0cef9111@eastlink.ca>
On 10/08/17 10:07 PM, Ray Andrews wrote:
> ... so it will be run if it's a script on my PATH, even if not '+x'
> then it seems intuitive that whence would also be able to find it.
>
>
Ah ... 'whence -m' not 'whence -ma' and it seems to be true one-stop
shopping, all files are found, mind, that would be text files that
aren't scripts, too, but 'file' shows the difference based on the
hashbang, so I can use that to filter out non scripts since I always
have a hashbang in any script. Not to be unclear about what I want to
do, but it is a caution that I can:
$ . pea_soup_recipe
... and it tries to execute that if I was so unorganized as to have that
file on my path somewhere. As Bart said, one can see the protection of
requiring '+x', but that does not seem to be the case.
next prev parent reply other threads:[~2017-08-11 16:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-10 21:46 PATH_DIRS Ray Andrews
2017-08-10 22:19 ` PATH_DIRS Bart Schaefer
2017-08-11 5:07 ` PATH_DIRS Ray Andrews
2017-08-11 16:12 ` Ray Andrews [this message]
2017-08-14 3:20 ` PATH_DIRS Bart Schaefer
2017-08-15 3:53 ` PATH_DIRS Ray Andrews
2017-08-15 16:50 ` PATH_DIRS Jim
2017-08-15 17:32 ` PATH_DIRS Bart Schaefer
2017-08-16 16:22 ` PATH_DIRS Ray Andrews
2017-08-20 10:59 ` PATH_DIRS Jim
2017-08-20 16:50 ` PATH_DIRS Ray Andrews
[not found] ` <CA+rB6GL7tv+_tyswyZYFLksy_+oQ4Nk8ZQ9FRDW8h1dfnKdUgw@mail.gmail.com>
2017-08-16 14:45 ` PATH_DIRS Ray Andrews
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=b1d7a71e-2468-3518-ef6f-d53601c45691@eastlink.ca \
--to=rayandrews@eastlink.ca \
--cc=zsh-users@zsh.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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).