* fixinc/inclhack.def (no_double_slash): Fix quoting for test.
* fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh; Rebuilt.
From-SVN: r27460
Wed Jun 9 13:12:24 1999 Jeffrey A Law (law@cygnus.com)
+ * fixinc/inclhack.def (no_double_slash): Fix quoting for test.
+ * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh; Rebuilt.
+
* varasm.c (remove_from_pending_weak_list): Verify t->name
is non-NULL before passing it to strcmp.
* perform the 'test' shell command - do fix on success
*/
tSCC zNo_Double_SlashTest0[] =
- "-z `echo ${file} | egrep '(CC|cxx|\\+\\+)/' `";
+ " -z \"`echo ${file} | egrep '(CC|cxx|++)/' `\"";
#define NO_DOUBLE_SLASH_TEST_CT 2
#define NO_DOUBLE_SLASH_RE_CT 1
* Also, only accept double slashes that are not part of URL's
* and are not the end of a quoted string.
*/
- test = '-z `echo ${file} | egrep \'(CC|cxx|\+\+)/\' `';
+ test = " -z \"`echo ${file} | egrep \'(CC|cxx|\+\+)/\' `\"";
select = '(^|[^:])//[^"*]';
sed = 's,^//.*$,,';
sed = 's,[^:]//[^"].*$,,';
# Fix 17: No_Double_Slash
#
if ( test -n "`egrep '(^|[^:])//[^\"*]' ${file}`" -a \
- '(' -z `echo ${file} | egrep '(CC|cxx|\+\+)/' ` ')'
+ '(' -z "`echo ${file} | egrep '(CC|cxx|++)/' `" ')'
) > /dev/null 2>&1 ; then
fixlist="${fixlist}
no_double_slash"