Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Running "unset path" breaks PATH despite emulation being enabled
- X-seq: zsh-workers 41651
- From: Eric Pruitt <eric.pruitt@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Running "unset path" breaks PATH despite emulation being enabled
- Date: Fri, 8 Sep 2017 01:29:17 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :pgp-key:user-agent; bh=YD8PTp3i7X8dnX54qNMnhaBBH3sz4tAysAjE79J3dlo=; b=iwLomBmydmAWb4SmA1XMe9OMU1UXA7zBG36kUQKuirG1BzNM1WdUGGTX12loSdVFEJ oBpDa8MYotZfJiOsQBdtHrb9zN5XBTYAF6Ud6L34byIpQZHY2iZ1jSj1wtU6nCK4k5yl XY6KxL6jNFeBuqL6e6pULp/TjREC+qKbY/p0bAH9aC1IvUt1NlUGzPeQN+H8u7vhYimJ HNfYxoZMXzLHusLM82nPJBY2n6aniG6Xdp3kcRIWw0M6lZZ5/mL4e0Aeiz3jmy9q/O6p CKy4MuSgsEMP8WPSDXzljsCuPuDTJizqEmSq3YTjWZzglKXT6J7e2T7XZXJ6rXGKTU7G DZYQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Pgp-key: https://www.codevat.com/pgp.asc#F8601B5D2511B4C3535232488DDDE2E6053692AB
According and <http://www.zsh.org/mla/users/2015/msg00180.html> and the
manual, Z shell should become roughly POSIX compatible when using
"emulate sh". When using emulation, running 'path=""' does not break
PATH command execution, but running 'unset path' still does which seems
like a bug to me:
$ zsh -c 'emulate -L sh; path=""; ls /dev/null'
/dev/null
$ zsh -c 'emulate -L sh; unset path; ls /dev/null'
zsh:1: command not found: ls
Eric
Messages sorted by:
Reverse Date,
Date,
Thread,
Author