[110205] trunk/dports/sysutils

raimue at macports.org raimue at macports.org
Wed Aug 28 07:54:20 PDT 2013


Revision: 110205
          https://trac.macports.org/changeset/110205
Author:   raimue at macports.org
Date:     2013-08-28 07:54:20 -0700 (Wed, 28 Aug 2013)
Log Message:
-----------
sysutils/bash-completion{,-devel}:
Better fix for the problem with the completion for known hosts, #32053

Modified Paths:
--------------
    trunk/dports/sysutils/bash-completion/Portfile
    trunk/dports/sysutils/bash-completion/files/patch-_known_hosts_real.diff
    trunk/dports/sysutils/bash-completion-devel/Portfile
    trunk/dports/sysutils/bash-completion-devel/files/patch-_known_hosts_real.diff

Modified: trunk/dports/sysutils/bash-completion/Portfile
===================================================================
--- trunk/dports/sysutils/bash-completion/Portfile	2013-08-28 12:17:19 UTC (rev 110204)
+++ trunk/dports/sysutils/bash-completion/Portfile	2013-08-28 14:54:20 UTC (rev 110205)
@@ -6,7 +6,7 @@
 conflicts       bash-completion-devel
 epoch           1
 version         2.1
-revision        3
+revision        4
 categories      sysutils
 platforms       darwin
 supported_archs noarch

Modified: trunk/dports/sysutils/bash-completion/files/patch-_known_hosts_real.diff
===================================================================
--- trunk/dports/sysutils/bash-completion/files/patch-_known_hosts_real.diff	2013-08-28 12:17:19 UTC (rev 110204)
+++ trunk/dports/sysutils/bash-completion/files/patch-_known_hosts_real.diff	2013-08-28 14:54:20 UTC (rev 110205)
@@ -6,7 +6,7 @@
      # append any available aliases from config files
      if [[ ${#config[@]} -gt 0 && -n "$aliases" ]]; then
 -        local hosts=$( sed -ne 's/^[ \t]*[Hh][Oo][Ss][Tt]\([Nn][Aa][Mm][Ee]\)\{0,1\}['"$'\t '"']\{1,\}\([^#*?]*\)\(#.*\)\{0,1\}$/\2/p' "${config[@]}" )
-+        local hosts=$( sed -ne 's/^[[:space:]]*[Hh][Oo][Ss][Tt]\([Nn][Aa][Mm][Ee]\)\{0,1\}['"$'[:space:]'"']\{1,\}\([^#*?]*\)\(#.*\)\{0,1\}$/\2/p' "${config[@]}" )
++        local hosts=$( sed -ne 's/^['"$'\t '"']*[Hh][Oo][Ss][Tt]\([Nn][Aa][Mm][Ee]\)\{0,1\}['"$'\t '"']\{1,\}\([^#*?]*\)\(#.*\)\{0,1\}$/\2/p' "${config[@]}" )
          COMPREPLY+=( $( compgen -P "$prefix$user" \
              -S "$suffix" -W "$hosts" -- "$cur" ) )
      fi

Modified: trunk/dports/sysutils/bash-completion-devel/Portfile
===================================================================
--- trunk/dports/sysutils/bash-completion-devel/Portfile	2013-08-28 12:17:19 UTC (rev 110204)
+++ trunk/dports/sysutils/bash-completion-devel/Portfile	2013-08-28 14:54:20 UTC (rev 110205)
@@ -5,7 +5,7 @@
 name            bash-completion-devel
 conflicts       bash-completion
 version         2.1
-revision        3
+revision        4
 categories      sysutils
 platforms       darwin
 supported_archs noarch

Modified: trunk/dports/sysutils/bash-completion-devel/files/patch-_known_hosts_real.diff
===================================================================
--- trunk/dports/sysutils/bash-completion-devel/files/patch-_known_hosts_real.diff	2013-08-28 12:17:19 UTC (rev 110204)
+++ trunk/dports/sysutils/bash-completion-devel/files/patch-_known_hosts_real.diff	2013-08-28 14:54:20 UTC (rev 110205)
@@ -6,7 +6,7 @@
      # append any available aliases from config files
      if [[ ${#config[@]} -gt 0 && -n "$aliases" ]]; then
 -        local hosts=$( sed -ne 's/^[ \t]*[Hh][Oo][Ss][Tt]\([Nn][Aa][Mm][Ee]\)\{0,1\}['"$'\t '"']\{1,\}\([^#*?]*\)\(#.*\)\{0,1\}$/\2/p' "${config[@]}" )
-+        local hosts=$( sed -ne 's/^[[:space:]]*[Hh][Oo][Ss][Tt]\([Nn][Aa][Mm][Ee]\)\{0,1\}['"$'[:space:]'"']\{1,\}\([^#*?]*\)\(#.*\)\{0,1\}$/\2/p' "${config[@]}" )
++        local hosts=$( sed -ne 's/^['$'\t '']*[Hh][Oo][Ss][Tt]\([Nn][Aa][Mm][Ee]\)\{0,1\}['$'\t '']\{1,\}\([^#*?]*\)\(#.*\)\{0,1\}$/\2/p' "${config[@]}" )
          COMPREPLY+=( $( compgen -P "$prefix$user" \
              -S "$suffix" -W "$hosts" -- "$cur" ) )
      fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130828/690b1c48/attachment.html>


More information about the macports-changes mailing list