zsh-workers
 help / color / mirror / code / Atom feed
* Bug: 'export FOO' not idempotent
@ 2022-06-27 21:11 Michael Smith
  2022-06-27 21:43 ` Lawrence Velázquez
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Smith @ 2022-06-27 21:11 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 610 bytes --]

Environments tested:
- macOS 12.4, M1 chip, zsh 5.8.1 (x86_64-apple-darwin21.0)
- Ubuntu 20.04.4, zsh 5.8 (x86_64-ubuntu-linux-gnu)

If I repeat 'export FOO' to mark an environment variable not give it a
value, in bash it consistently does not show up in 'env':

$ export FOO

$ env | grep FOO

$ export FOO

$ env | grep FOO

but in zsh the 2nd invocation will set it to an empty string:

$ export FOO

$ env | grep FOO

$ export FOO
        $ env | grep FOO

FOO=


This is an issue only because a project I'm building uses an empty export
for documentation, and it makes that project annoying to work with.

[-- Attachment #2: Type: text/html, Size: 3513 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-07-02 22:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-27 21:11 Bug: 'export FOO' not idempotent Michael Smith
2022-06-27 21:43 ` Lawrence Velázquez
2022-06-27 21:46   ` Michael Smith
2022-06-27 21:52     ` Lawrence Velázquez
2022-06-27 21:58       ` Roman Perepelitsa
2022-06-27 22:37         ` Lawrence Velázquez
2022-07-02 22:05           ` Bart Schaefer
2022-07-02 22:14             ` Bart Schaefer
2022-06-27 21:50   ` Roman Perepelitsa

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).