This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: wordexp IFS fixes
- To: Tim Waugh <tim@cyberelk.demon.co.uk>
- Subject: Re: wordexp IFS fixes
- From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
- Date: 07 Sep 1998 15:34:06 +0200
- Cc: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>, Ulrich Drepper <drepper@cygnus.com>, libc-hacker@cygnus.com
- References: <Pine.LNX.4.00.9809071313060.13936-100000@cyberelk.elk.co.uk>
Tim Waugh <tim@cyberelk.demon.co.uk> writes:
|> Bash says that "set a b c" sets three positional parameters, so is this
|> security hole only for non-whitespace IFS?
This is not a case of IFS splitting. From the bash manual:
IFS The Internal Field Separator that is used for word
splitting after expansion and to split lines into words
with the read builtin command. The default value is
``<space><tab><newline>''.
EXPANSION
Expansion is performed on the command line after it has been
split into words. There are seven kinds of expansion per-
formed: brace expansion, tilde expansion, parameter and
variable expansion, command substitution, arithmetic expan-
sion, word splitting, and pathname expansion.
Andreas.