diff options
author | Russ Cox <rsc@swtch.com> | 2020-01-13 19:20:34 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-01-13 19:20:34 -0500 |
commit | 6c17f630901eec2a4b54b70748d7fbc9b47eecd8 (patch) | |
tree | 8aecc9bf262483cf25a59692f430afbfd4256f57 /src/lib9pclient/wstat.c | |
parent | 9962d916e88f66014f1008d4356a2d395ae8d31b (diff) | |
download | plan9port-6c17f630901eec2a4b54b70748d7fbc9b47eecd8.tar.gz plan9port-6c17f630901eec2a4b54b70748d7fbc9b47eecd8.tar.bz2 plan9port-6c17f630901eec2a4b54b70748d7fbc9b47eecd8.zip |
mk: treat X= as empty list in rc shell
This brings mk's behavior when using rc in line with Plan 9's.
The existing code is for Unix environment data structures but
also was assuming Unix shell semantics where empty and missing
variables are mostly equivalent.
The Plan 9 code (/sys/src/cmd/mk/plan9.c in the distribution)
explicitly removes /env/name (creating an empty list) when the
value is missing or an empty string.
Fixes #255.
Diffstat (limited to 'src/lib9pclient/wstat.c')
0 files changed, 0 insertions, 0 deletions