Results 1 - 19 of about 19 results out of about 94206 pages. (0.03 seconds)
- BashPitfalls . . . 6 matches
- ...ontains whitespace (or any character in the current value of `$IFS`), it undergoes WordSplitting. Assuming we have a file named `01 - Don't Eat the Yellow Snow.mp3` in the curren...
- IFS . . . 3 matches
- ...o variable names to `read` suppresses IFS whitespace trimming.
* When performing WordSplitting on an unquoted expansion, `IFS` is used to split the value of the expansion into m...
- BashGuide/Practices . . . 2 matches
- ...sake, '''"Use more quotes!"''' Protect your strings and parameter expansions from WordSplitting. Word splitting will eat your babies if you don't quote things properly.
* Lear...
- BashFAQ/100 . . . 2 matches
- ...e sort of command. Also, the results of an unquoted parameter expansion will be [[WordSplitting|split into multiple words]] and [[glob|expanded into filenames]], which we general...
- BashFAQ/005 . . . 2 matches
- ... same way as the arguments to a command, including [[glob|pathname expansion]] and WordSplitting. Any type of expansion or substitution may be used. All the usual [[Quotes|quoting...
- Arguments . . . 2 matches
- ...n intuitive way for us to communicate with the system. It uses techniques such as WordSplitting and english keywords to allow us to express our wishes in a language that closely ...
- glob . . . 1 match
- ...the output of {{{ls}}} is filtered, and then the result of the whole pipeline is [[WordSplitting|divided into words]], to serve as iterative values for the loop. This word-splitt...
- ShellHallOfShame/Page2 . . . 1 match
- ...`ls` to enumerate the contents of each one, shoving it all through `sort -u`, then WordSplitting the result of that and hoping it's still filenames. Well, sure, if you control al...
- ShellHallOfShame . . . 1 match
- ...er into a single string, with a single space between them. And then the shell's [[WordSplitting|word splitting]] is used to divide the filenames apart. If a filename already con...
- Quotes . . . 1 match
- ...gnore glob pattern characters ===
'''The second purpose of quoting is to prevent [[WordSplitting|word splitting]] and [[glob|globbing]].''' The result of a double-quoted substitu...
- CommandSubstitution . . . 1 match
- ...}}}
As with all substitutions, the results of a command substitution will undergo WordSplitting, unless the whole thing is inside [[Quotes|double quotes]].
Command substitutions...
- CategoryShell . . . 1 match
- ...##master-page:CategoryTemplate
##master-date:Unknown-Date
#format wiki
#language en
These pages discuss issues associated with the Unix command line shells, especially bash, but a...
- BashGuide/CommandsAndArguments . . . 1 match
- ...ed:
{{{
$ [ -f "my file" ]
}}}
Have a good look at [[Arguments]], [[Quotes]], and WordSplitting if all this isn't very clear yet. It is important to have a good grasp of how the...
- BashGuide/Arrays . . . 1 match
- ...icely '''quoted'''! If you don't keep `${arrayname[*]}` quoted, once again Bash's WordSplitting will cut it into bits.
You can combine `IFS` with `"${arrayname[*]}"` to indicate...
- BashFAQ/096 . . . 1 match
- ... -O>
}}}
The shell on the remote host will re-parse the argument, break it into [[WordSplitting|words]], and then execute it.
The first problem with this approach is that it's t...
- BashFAQ/073 . . . 1 match
- ...d. See ArithmeticExpression.
Quoting is not needed in variable assignment, since WordSplitting does not occur. On the other hand, variables referenced inside a parameter expa...
- BashFAQ/050 . . . 1 match
- ...]]; then args+=" -s '$subject'"; fi
mail $args < "$body"
}}}
This fails because of WordSplitting and because the single quotes inside the variable are literal, not syntactical. I...
- BashFAQ/031 . . . 1 match
- ...file is not a setuid file"}}} ||
But there are more subtle differences.
* No WordSplitting or [[glob]] expansion will be done for {{{[[}}} (and therefore many arguments need...
- BashFAQ/020 . . . 1 match
- ...er Expansions]] using double quotes'''. If you don't, the expansion will undergo WordSplitting (see also [[BashGuide/CommandsAndArguments#Argument_Splitting|argument splitting]]...