aboutsummaryrefslogtreecommitdiff
path: root/src/libbin/mkfile
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-01-13 19:20:34 -0500
committerRuss Cox <rsc@swtch.com>2020-01-13 19:20:34 -0500
commit6c17f630901eec2a4b54b70748d7fbc9b47eecd8 (patch)
tree8aecc9bf262483cf25a59692f430afbfd4256f57 /src/libbin/mkfile
parent9962d916e88f66014f1008d4356a2d395ae8d31b (diff)
downloadplan9port-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/libbin/mkfile')
0 files changed, 0 insertions, 0 deletions