summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2015-07-30 11:08:38 +0200
committerH.Merijn Brand <h.m.brand@xs4all.nl>2015-07-30 11:08:38 +0200
commit61349bf5e52168d99be068991ed49b8b49bbcf65 (patch)
treec507e0433d375b3f5b0d74262ca99f156763c08e /Configure
parent7e41b9934be595ab0534b20441b5cb8b982ddb32 (diff)
downloadperl-61349bf5e52168d99be068991ed49b8b49bbcf65.tar.gz
extra guard against spaces in paths (spotted by Ivan Pozdeev)
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure16
1 files changed, 8 insertions, 8 deletions
diff --git a/Configure b/Configure
index 4d25c90e31..464737dcf6 100755
--- a/Configure
+++ b/Configure
@@ -23459,13 +23459,13 @@ find_extensions='
case "$xxx" in
DynaLoader|dynaload) ;;
*)
- this_ext=`echo $xxx | $sed -e s/-/\\\//g`;
+ this_ext=`echo "$xxx" | $sed -e s/-/\\\//g`;
case "$this_ext" in
Scalar/List/Utils) this_ext="List/Util" ;;
PathTools) this_ext="Cwd" ;;
esac;
- echo " $xs_extensions $nonxs_extensions" > $tdir/$$.tmp;
- if $contains " $this_ext " $tdir/$$.tmp; then
+ echo " $xs_extensions $nonxs_extensions" > "$tdir/$$.tmp";
+ if $contains " $this_ext " "$tdir/$$.tmp"; then
echo >&4;
echo "Duplicate directories detected for extension $xxx" >&4;
echo "Configure cannot correctly recover from this - shall I abort?" >&4;
@@ -23483,15 +23483,15 @@ find_extensions='
esac;
echo "Ok. You will need to correct config.sh before running make." >&4;
fi;
- $ls -1 $xxx > $tdir/$$.tmp;
- if $contains "\.xs$" $tdir/$$.tmp > /dev/null 2>&1; then
+ $ls -1 "$xxx" > "$tdir/$$.tmp";
+ if $contains "\.xs$" "$tdir/$$.tmp" > /dev/null 2>&1; then
xs_extensions="$xs_extensions $this_ext";
- elif $contains "\.c$" $tdir/$$.tmp > /dev/null 2>&1; then
+ elif $contains "\.c$" "$tdir/$$.tmp" > /dev/null 2>&1; then
xs_extensions="$xs_extensions $this_ext";
- elif $test -d $xxx; then
+ elif $test -d "$xxx"; then
nonxs_extensions="$nonxs_extensions $this_ext";
fi;
- $rm -f $tdir/$$.tmp;
+ $rm -f "$tdir/$$.tmp";
;;
esac;
done'