Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
brianhicks
· 6y ago · 0 comments
What shell are you running this under? Unquoted exclamation marks will do things that may be outside your intent for this script. It’ll still fail, just perhaps not in the way you expect.
Comments
[–]
mg
6y ago
You mean due to history substitution? If so: I have never seen that kick in in a script. Only in interactive shells.