mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
fix(echo): echo - was treated as echo -n
Small logic error on my part
This commit is contained in:
parent
d40560bb37
commit
0cfa2677c5
2 changed files with 11 additions and 2 deletions
7
test.sh
7
test.sh
|
|
@ -452,6 +452,13 @@ hi -n hello
|
|||
goodbye
|
||||
EOF
|
||||
|
||||
when_run <<EOF "echo - n"
|
||||
echo - n hi
|
||||
EOF
|
||||
expecting <<EOF
|
||||
- n hi
|
||||
EOF
|
||||
|
||||
EXTRAENV="-i"
|
||||
when_run <<EOF "env works"
|
||||
echo this should be empty:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue