fix(echo): echo - was treated as echo -n

Small logic error on my part
This commit is contained in:
Khaïs COLIN 2025-04-03 17:17:51 +02:00
parent d40560bb37
commit 0cfa2677c5
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
2 changed files with 11 additions and 2 deletions

View file

@ -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: