Are quotes needed for local variable assignment?
51
votes
2
answers
13192
views
Can I safely omit quotes on the right side of a local assignment?
function foo {
local myvar=${bar}
stuff()
}
I'm mainly interested in
bash
, but any info on corner cases in other shells are welcome.
Asked by rahmu
(20511 rep)
Oct 25, 2013, 01:17 PM
Last activity: Dec 16, 2020, 06:54 AM
Last activity: Dec 16, 2020, 06:54 AM