bug-gnu-utils
[Top][All Lists]
Advanced

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

gettext 0.10.37 gettextize portability bug with Solaris 8 /bin/sh


From: Paul Eggert
Subject: gettext 0.10.37 gettextize portability bug with Solaris 8 /bin/sh
Date: Sat, 12 May 2001 21:15:38 -0700 (PDT)

The `gettextize' command uses the 'test -e' shell command, but Solaris 8
/bin/sh does not support 'test -e'.  For example:

$ /bin/sh -c 'test -e /'
/bin/sh: test: argument expected

This causes gettextize to output bogus messages.  Here is a patch:

2001-05-12  Paul Eggert  <address@hidden>

        * misc/gettextize.in: Replace "test -e" with "test -f", since
        Solaris 8 /bin/sh doesn't grok "test -e".

===================================================================
RCS file: misc/gettextize.in,v
retrieving revision 0.10.37.0
retrieving revision 0.10.37.1
diff -pu -r0.10.37.0 -r0.10.37.1
--- misc/gettextize.in  2001/03/21 21:27:20     0.10.37.0
+++ misc/gettextize.in  2001/05/13 03:47:07     0.10.37.1
@@ -177,12 +177,12 @@ $DATE  gettextize  <address@hidden
 
        * Makefile.in.in: Upgrade to gettext-${version}.
 EOF
-if test -e $srcdir/po/cat-id-tbl.c; then
+if test -f $srcdir/po/cat-id-tbl.c; then
   $echo "Removing po/cat-id-tbl.c"
   rm -f $srcdir/po/cat-id-tbl.c
   $echo "      * cat-id-tbl.c: Remove file." >> $srcdir/po/ChangeLog.tmp
 fi
-if test -e $srcdir/po/stamp-cat-id; then
+if test -f $srcdir/po/stamp-cat-id; then
   $echo "Removing po/stamp-cat-id"
   rm -f $srcdir/po/stamp-cat-id
   $echo "      * stamp-cat-id: Remove file." >> $srcdir/po/ChangeLog.tmp



reply via email to

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