Hello Bruno,

ok to push?
Quoting autoconf.info:

| `join'
|      Solaris 8 `join' has bugs when the second operand is standard
|      input, and when standard input is a pipe.  For example, the
|      following shell script causes Solaris 8 `join' to loop forever:
| 
|           cat >file <<'EOF'
|           1 x
|           2 y
|           EOF
|           cat file | join file -
| 
|      Use `join - file' instead.

Thanks,
Ralf

    work around Solaris 8 'join' bug
    
    * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
    rather than 'join FILE -', for Solaris join.

diff --git a/gnulib-tool b/gnulib-tool
index eebc2bf..1ccfea9 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -3618,9 +3618,9 @@ s,//*$,/,'
             sed -e "s|^$anchor||" < "$destdir/$dir$ignore" | LC_ALL=C sort > 
"$tmp"/ignore
             (func_reset_sigpipe
              echo "$dir_added" | sed -e '/^$/d' | LC_ALL=C sort -u \
-               | LC_ALL=C join -v 2 "$tmp"/ignore - > "$tmp"/ignore-added
+               | LC_ALL=C join -v 1 - "$tmp"/ignore > "$tmp"/ignore-added
              echo "$dir_removed" | sed -e '/^$/d' | LC_ALL=C sort -u \
-               | LC_ALL=C join -v 2 "$tmp"/ignore - > "$tmp"/ignore-removed
+               | LC_ALL=C join -v 1 - "$tmp"/ignore > "$tmp"/ignore-removed
             )
             if test -s "$tmp"/ignore-added || test -s "$tmp"/ignore-removed; 
then
               if $doit; then


Reply via email to