Skip to content

Commit

Permalink
tests/tilde-p: Protect from undefined LOGNAME
Browse files Browse the repository at this point in the history
  • Loading branch information
magicant committed Nov 21, 2024
1 parent c080f2e commit 445cf5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tilde-p.tst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ if
logname=$(logname)
if [ "$logname" ]; then LOGNAME=$logname; fi
unset logname
! { [ "$LOGNAME" ] && export LOGNAME; }
! { [ "${LOGNAME-}" ] && export LOGNAME; }
then
skip="true"
elif
Expand Down

0 comments on commit 445cf5d

Please sign in to comment.