4 ms·
..it'd be nice if what was actually happening was explained of just statements like "[ is the original form for tests, and then [[ was introduced, which is more
by Nimitz14 9y ago
..it'd be nice if what was actually happening was explained of just statements like "[ is the original form for tests, and then [[ was introduced, which is more flexible and intuitive"
- jwilk 9y agoThe primary differences are: * word splitting and pathname expansion don't happen in [[...]]; * "==" does pattern matching in [[...]], but it does string comparison in [...].
- falcolas 9y agoI recommend reading `man bash` for the section on Conditional Execution. It's remarkably readable and useful for man pages. It also cleanly explains the difference between the two.