-
Notifications
You must be signed in to change notification settings - Fork 1.9k
SC1080
Joachim Ansorg edited this page Oct 31, 2022
·
2 revisions
[ "$filename" =
"$otherfile" ][ "$filename" = \
"$otherfile" ]Bash/ksh [[ ]]] can include line breaks anywhere, but [ ] requires that you escape them. If you are writing a multi-line [ .. ] statement, make sure to include these escapes. If the [ ] is supposed to be on a single line, make sure the ] is there.
None
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!