[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
command substitution and word splitting
From: |
S. Sevki Dincer |
Subject: |
command substitution and word splitting |
Date: |
Fri, 12 Dec 2008 18:32:59 +0200 |
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H -I. -I../bash -I../bash/include
-I../bash/lib -g -O2 -Wall
uname output: Linux Gauss 2.6.24-22-generic #1 SMP Mon Nov 24 19:35:06
UTC 2008 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu
Bash Version: 3.2
Patch Level: 39
Release Status: release
Description:
i want to start building a project with ./configure --prefix=... $(myflags)
where myflags is an executable text file on my path. myflags has the
following in it:
printf 'CFLAGS="-O2 -fomit-frame-pointer" '
printf 'LDFLAGS="-Wl,-O2"'
now, when i do that ./configure complains for not recognizing
-fomit-frame-pointer option, and actually word splitting of bash ruins
what i wanna do. i want the word splitting of a command substitution
"to be careful about the quotes in the resulting expansion". is that
possible?
note: i have xubuntu 8.04 amd64 desktop, on a core2 dell laptop.
Fix:
something like $(command@) can be added to bash, retaining old
functionality. the new one will warn (somehow) word splitting to be
careful about possible quotes in the resulting expansion of the
command substitution.
- command substitution and word splitting,
S. Sevki Dincer <=