mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated Sc2086 (markdown)
@@ -37,7 +37,7 @@ Note that `$( )` starts a new context, and variables in it have to be quoted ind
|
|||||||
```sh
|
```sh
|
||||||
echo "This $variable is quoted $(but this $variable is not)"
|
echo "This $variable is quoted $(but this $variable is not)"
|
||||||
echo "This $variable is quoted $(and now this "$variable" is too)"
|
echo "This $variable is quoted $(and now this "$variable" is too)"
|
||||||
```sh
|
```
|
||||||
|
|
||||||
### Exceptions
|
### Exceptions
|
||||||
Sometimes you want to split on spaces, like when building a command line.
|
Sometimes you want to split on spaces, like when building a command line.
|
||||||
@@ -61,5 +61,5 @@ or a function (POSIX):
|
|||||||
make_with_flags file
|
make_with_flags file
|
||||||
```
|
```
|
||||||
|
|
||||||
To split on spaces but not perform glob expansion, Posix has a `set -f` to disable globbing. You can disable word splitting by setting IFS="".
|
To split on spaces but not perform glob expansion, Posix has a `set -f` to disable globbing. You can disable word splitting by setting `IFS=''`.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user