Updated Sc2086 (markdown)

Mingye Wang
2015-11-03 08:57:46 -05:00
parent 5b784d0667
commit df511650d1

@@ -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=''`.