In POSIX scripting, is x=$y always equivalent to x="$y"?
9
votes
2
answers
797
views
Are
x=$y
and
x="$y"
always equivalent? Didn't know how to search for this. So far, I've always been using
x="$y"
to be "on the safe side". But I used x=$1
at one point and noticed that, apparently, I don't even need the extra double quotation marks.
Where is the behavior defined in The Open Group POSIX document?
Asked by finefoot
(3554 rep)
Oct 4, 2022, 11:42 PM
Last activity: Oct 6, 2022, 05:07 AM
Last activity: Oct 6, 2022, 05:07 AM