3 ms·
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
by brianhicks 6y ago
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.
- mg 6y agoYou mean due to history substitution? If so: I have never seen that kick in in a script. Only in interactive shells.