From: Martijn Dekker <martijn@inlv.org>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>, zsh-workers@zsh.org
Subject: Re: command -p should enable builtins not in path
Date: Fri, 21 Aug 2020 17:35:14 +0100 [thread overview]
Message-ID: <01ba6e28-19ce-274c-2ff2-f95a4088d6cf@inlv.org> (raw)
In-Reply-To: <1593127844.1326203.1598026086145@mail2.virginmedia.com>
Op 21-08-20 om 17:08 schreef Peter Stephenson:
> However, "command" with no option is a very long-standing piece of zsh
> syntax to pick an external command, so that's certainly not going to change.
Of course. So what I'm trying to suggest is that this change to -p is
maybe not a very good idea either. There is a long-standing expectation
that 'command' runs an external command in native zsh mode, so why
should that be different just because you're searching the default path?
Code that expects POSIX behaviour, such as that Intel build script,
shouldn't be run in native zsh mode anyway. If it needs to cooperate
with native zsh code, it can be loaded with sticky emulation.
- M.
--
|| modernish -- harness the shell
|| https://github.com/modernish/modernish
||
|| KornShell lives!
|| https://github.com/ksh93/ksh
next prev parent reply other threads:[~2020-08-21 16:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-20 11:28 Vincent Lefevre
2020-08-21 13:03 ` Peter Stephenson
2020-08-21 15:49 ` Martijn Dekker
2020-08-21 16:08 ` Peter Stephenson
2020-08-21 16:35 ` Martijn Dekker [this message]
2020-08-24 18:30 ` Vincent Lefevre
2020-08-24 19:59 ` Martijn Dekker
2020-10-02 13:17 ` Vincent Lefevre
2020-08-21 15:47 ` Martijn Dekker
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=01ba6e28-19ce-274c-2ff2-f95a4088d6cf@inlv.org \
--to=martijn@inlv.org \
--cc=p.w.stephenson@ntlworld.com \
--cc=zsh-workers@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).