[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
work around Solaris 8 'join' bug
From: |
Ralf Wildenhues |
Subject: |
work around Solaris 8 'join' bug |
Date: |
Sun, 28 Dec 2008 11:23:01 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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
- work around Solaris 8 'join' bug,
Ralf Wildenhues <=