aboutsummaryrefslogtreecommitdiffstats
path: root/subst.c
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>1998-07-23 14:37:54 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:52 +0000
commitbc4cd23ce958feda898c618215f94d8a4e8f4ffa (patch)
tree32fc9a13b636cb4d29873feddc533d3dfb25a917 /subst.c
parentcce855bc5b117cb7ae70064131120687bc69fac0 (diff)
downloadandroid_external_bash-bc4cd23ce958feda898c618215f94d8a4e8f4ffa.tar.gz
android_external_bash-bc4cd23ce958feda898c618215f94d8a4e8f4ffa.tar.bz2
android_external_bash-bc4cd23ce958feda898c618215f94d8a4e8f4ffa.zip
Imported from ../bash-2.02.1.tar.gz.
Diffstat (limited to 'subst.c')
-rw-r--r--subst.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/subst.c b/subst.c
index cdc37d6..94c230f 100644
--- a/subst.c
+++ b/subst.c
@@ -5033,7 +5033,11 @@ add_string:
{
if (list->next)
{
- temp = string_list (quote_list (list));
+ /* Testing quoted_dollar_at makes sure that "$@" is
+ split correctly when $IFS does not contain a space. */
+ temp = quoted_dollar_at
+ ? string_list_dollar_at (list, Q_DOUBLE_QUOTES)
+ : string_list (quote_list (list));
dispose_words (list);
goto add_string;
}