Skip to content

Commit

Permalink
Fix a typo (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrischmuth authored Jul 12, 2024
1 parent 667ee08 commit 0b319ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ Conditional expressions have a number of benefits over plain `test` commands. So

You can find more details on conditional expressions by using `man bash` and searching for `\[\[` (this is the double square brackets with each one escaped with a backslash).

Some people prefer to use single brackets so that their script is more portable, as the double brackets are specific to Bash and Bash-like shells. Others prefer to use the double brackets so that they can use the additional featured offered.
Some people prefer to use single brackets so that their script is more portable, as the double brackets are specific to Bash and Bash-like shells. Others prefer to use the double brackets so that they can use the additional features offered.

Whether you use single or double brackets will partly be down to preference and whether it is more important in your use case to have portability or whether it is more important to have the more 'correct' behaviour.

Expand Down

0 comments on commit 0b319ab

Please sign in to comment.