unset: implement unset

This commit is contained in:
Khaïs COLIN 2025-04-03 14:30:44 +02:00
parent 1ef8b7a0ae
commit d40560bb37
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
6 changed files with 43 additions and 4 deletions

View file

@ -460,6 +460,9 @@ echo
export var=VALUE hi=hello bye=goodbye
echo this contains some values
env
unset var bye
echo some vars were unset
env
EOF
expecting <<EOF
this should be empty:
@ -468,6 +471,8 @@ this contains some values
var=VALUE
hi=hello
bye=goodbye
some vars were unset
hi=hello
EOF
EXTRAENV="-i"