Reputation
5,688
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
16 56 127
Impact
~588k people reached

14h
accepted Prevent glob expansion in foo=“*”; echo $foo
14h
comment Prevent glob expansion in foo=“*”; echo $foo
Of course! I can't believe I missed this. I kept thinking of quoting the original assignment, not the expansion on the echo statement itself!
14h
revised Prevent glob expansion in foo=“*”; echo $foo
edited title
14h
comment Prevent glob expansion in foo=“*”; echo $foo
@don_crissti My wrong! Sorry I read that too quickly. Can't believe I fell victim to this.
14h
comment Prevent glob expansion in foo=“*”; echo $foo
Thanks @don_crissti: It works, but it prints the contents of the current folder.
14h
revised Prevent glob expansion in foo=“*”; echo $foo
added 49 characters in body
14h
asked Prevent glob expansion in foo=“*”; echo $foo
Apr
18
awarded  Popular Question
Apr
15
awarded  Famous Question
Apr
15
awarded  Nice Question
Apr
13
awarded  Popular Question
Apr
9
accepted rsync with absolute paths and excluding subpaths
Apr
9
awarded  Popular Question
Apr
8
awarded  Popular Question
Apr
8
awarded  Popular Question
Apr
5
awarded  Nice Question
Mar
31
awarded  Notable Question
Mar
31
awarded  Popular Question
Mar
27
accepted What does $'text' do exactly in Bash? Can it be used in Zsh?
Mar
27
comment What does $'text' do exactly in Bash? Can it be used in Zsh?
Thanks @dhag . You are right, that last command did it. Thanks!