mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
unset: implement unset
This commit is contained in:
parent
1ef8b7a0ae
commit
d40560bb37
6 changed files with 43 additions and 4 deletions
5
test.sh
5
test.sh
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue