The following commit has been merged in the master branch:
commit 836adbbb2d0147029edf9062e72d8152cfda577b
Author: Ville Skyttä <[email protected]>
Date:   Sun Jan 24 22:11:52 2010 +0200

    Use == instead of =~ for simple suffix matching.

diff --git a/contrib/strace b/contrib/strace
index 0df5997..4011303 100644
--- a/contrib/strace
+++ b/contrib/strace
@@ -43,7 +43,7 @@ _strace()
                     /usr/include/asm/unistd.h | sed -e \
                     's/__NR_//')
                 if [ -z "$syscalls" ]; then
-                    if [[ "$arch" =~ 86$ ]]; then
+                    if [[ "$arch" == *86 ]]; then
                         unistd=/usr/include/asm/unistd_32.h
                     else
                         unistd=/usr/include/asm/unistd_64.h

-- 
bash-completion

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits

Reply via email to