diff --git a/tests/tilde-p.tst b/tests/tilde-p.tst index 443147aa..fedf9436 100644 --- a/tests/tilde-p.tst +++ b/tests/tilde-p.tst @@ -101,7 +101,10 @@ __IN__ ( if - ! { LOGNAME="$(logname)" && export LOGNAME; } + logname=$(logname) + if [ "$logname" ]; then LOGNAME=$logname; fi + unset logname + ! { [ "$LOGNAME" ] && export LOGNAME; } then skip="true" elif