Hello,
Daniel Dehennin wrote:
> I use some aliases:
> alias ls='ls -CFh --color'
>
> This break pmount bash completion.
>
> Other bash completion scripts use the "command" builtins.
Thanks !
Could you check that the attached modification (ie your suggestion)
does the trick please ? (it really should - but I'm not personally using
bash completion for pmount).
Cheers,
Vincent
--
Give a man a fish and you feed him for a day.
Give him a poisoned fish and you feed him for the rest of his life !
-- Slightly twisted chinese proverb
Vincent, listening to Black Dog (Led Zeppelin)
diff --git a/debian/completion/pmount b/debian/completion/pmount
index 5cc3dfb..e80bfa1 100644
--- a/debian/completion/pmount
+++ b/debian/completion/pmount
@@ -59,7 +59,7 @@ _pmount() {
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W "$options" -- $cur ) )
else
- devices="$( ls $(grep -v '^[[:space:]]*#' /etc/pmount.allow ) $(grep 1
/sys/block/*/removable | sed -e 's,/sys/block/,/dev/,;s,/removable:1,*,')
2>/dev/null | sort -u | sed -e 's,\(^/dev/\)\(.*\),\1\2 \2,' )"
+ devices="$( command ls $(grep -v '^[[:space:]]*#' /etc/pmount.allow )
$(grep 1 /sys/block/*/removable | sed -e
's,/sys/block/,/dev/,;s,/removable:1,*,') 2>/dev/null | sort -u | sed -e
's,\(^/dev/\)\(.*\),\1\2 \2,' )"
COMPREPLY=( $( compgen -W "$devices" -- $cur ) )
fi