zsh-workers
 help / color / mirror / code / Atom feed
From: Martijn Dekker <martijn@inlv.org>
To: zsh-workers@zsh.org
Subject: Re: command -p should enable builtins not in path
Date: Fri, 21 Aug 2020 16:47:39 +0100	[thread overview]
Message-ID: <e8f2eaba-53bd-3f53-03df-414157a83eb7@inlv.org> (raw)
In-Reply-To: <20200820112815.GA216072@zira.vinc17.org>

Op 20-08-20 om 12:28 schreef Vincent Lefevre:
> Though zsh isn't meant to conform to POSIX, it should follow its
> requirements when they make sense.


Just to clarify, 'zsh --emulate sh' *is* meant to conform to POSIX, correct?

[...]
> Setting the POSIX_BUILTINS option allows "cd" to be found, but with
> the drawback that it will not disable builtins that are in $PATH.
> So this option is a bad solution when using "zmodload zsh/files"
> without -F, for instance.
> 
> Note: "command -p cd ..." is used by Intel's script to set up
> environment variables for its compiler.


If it wasn't written for native zsh, it probably has other 
incompatibilities as well. Wouldn't 'sticky emulation' allow you to 
seamlessly mix that code with native zsh code?

- M.

-- 
||	modernish -- harness the shell
||	https://github.com/modernish/modernish
||
||	KornShell lives!
||	https://github.com/ksh93/ksh


      parent reply	other threads:[~2020-08-21 15:48 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
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 [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=e8f2eaba-53bd-3f53-03df-414157a83eb7@inlv.org \
    --to=martijn@inlv.org \
    --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).