[Bash-completion-commits] [bash-completion] 02/02: abook, kldunload: Pre-expand \t instead of relying on sed supporting it.
Ville Skyttä
scop-guest at alioth.debian.org
Mon Aug 26 20:21:48 UTC 2013
This is an automated email from the git hooks/post-receive script.
scop-guest pushed a commit to branch master
in repository bash-completion.
commit 24f0c58c29885f89ef2a3a16db17e73b6cd6f64e
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Aug 26 23:20:30 2013 +0300
abook, kldunload: Pre-expand \t instead of relying on sed supporting it.
---
completions/abook | 4 ++--
completions/kldunload | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/completions/abook b/completions/abook
index 07a0f09..1a6f0a0 100644
--- a/completions/abook
+++ b/completions/abook
@@ -23,12 +23,12 @@ _abook()
case $prev in
--informat)
COMPREPLY=( $( compgen -W "$(abook --formats | \
- sed -n -e 's/^\t\([a-z]*\).*/\1/p' -e '/^$/q')" -- "$cur" ) )
+ sed -n -e 's/^'$'\t''\([a-z]*\).*/\1/p' -e '/^$/q')" -- "$cur" ) )
return 0
;;
--outformat)
COMPREPLY=( $( compgen -W "$(abook --formats | \
- sed -n -e '/^$/,$s/^\t\([a-z]*\).*/\1/p')" -- "$cur" ) )
+ sed -n -e '/^$/,$s/^'$'\t''\([a-z]*\).*/\1/p')" -- "$cur" ) )
return 0
;;
--infile)
diff --git a/completions/kldunload b/completions/kldunload
index adb268d..4c33028 100644
--- a/completions/kldunload
+++ b/completions/kldunload
@@ -8,7 +8,7 @@ _kldunload()
_init_completion || return
COMPREPLY=( $( kldstat | \
- sed -ne "s/^.*[ \t]\{1,\}\($cur[a-z_]\{1,\}\).ko$/\1/p" ) )
+ sed -ne "s/^.*[ $'\t']\{1,\}\($cur[a-z_]\{1,\}\).ko$/\1/p" ) )
} &&
complete -F _kldunload kldunload
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git
More information about the Bash-completion-commits
mailing list