bug-libunistring
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-libunistring] Fix quoting in exported.sh.in, allow multiple argumen


From: Ralf Wildenhues
Subject: [bug-libunistring] Fix quoting in exported.sh.in, allow multiple arguments.
Date: Fri, 1 May 2009 11:45:55 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hi Bruno,

the global symbol pipe text may contain TABs that should not be
flattened; I *think* they were added as a safety measure only, but am
not sure, there are a few oddball nm implementations out there.

The multi-file change allows for further improvements to the build
system.

A similar patch applies to gettext/gettext-tools/libgettextpo.

Cheers,
Ralf

2009-05-01  Ralf Wildenhues  <address@hidden>

        Fix quoting in exported.sh.in, allow multiple arguments.
        * lib/exported.sh.in: Quote argument to eval, to avoid losing
        TABs from @address@hidden  Allow multiple file arguments.

diff --git a/lib/exported.sh.in b/lib/exported.sh.in
index 89e4008..9923cc4 100644
--- a/lib/exported.sh.in
+++ b/lib/exported.sh.in
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-# Copyright (C) 2006 Free Software Foundation, Inc.
+# Copyright (C) 2006, 2009 Free Software Foundation, Inc.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -16,9 +16,9 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-# This is a script that determines the exported symbols of an object file.
+# This is a script that determines the exported symbols of object files.
 # This is a separate script because $(GLOBAL_SYMBOL_PIPE) cannot be used in a
 # Makefile, since it may contain dollar signs.
 
-nm_cmd="@NM@ $1 | @GLOBAL_SYMBOL_PIPE@"
-eval $nm_cmd
+nm_cmd="@NM@ $* | @GLOBAL_SYMBOL_PIPE@"
+eval "$nm_cmd"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]