From 218a7e324dc52e5b9f2e724c1463fb0643a6036f Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Thu, 19 Jul 2018 17:26:11 +0900 Subject: 43183: fix '_ttys -o' and use it in _gdb/_pgrep --- Completion/Unix/Type/_ttys | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Unix/Type') diff --git a/Completion/Unix/Type/_ttys b/Completion/Unix/Type/_ttys index 7408395c8..3c40466cb 100644 --- a/Completion/Unix/Type/_ttys +++ b/Completion/Unix/Type/_ttys @@ -12,7 +12,7 @@ local stripdev optdev open zparseopts -D -K -E d=stripdev D=optdev o=open if [[ -n $open ]]; then - ttys=( ${(u)${(f)"$(_call_program open-ttys ps -ao tty=)"}%% *} ) + ttys=( ${(u)${${(f)"$(_call_program open-ttys ps -Ao tty=)"}:#\?*}%% *} ) _description open-ttys expl 'open tty' else ttys=( /dev/tty?*(N) /dev/pts/^ptmx(N) ) -- cgit 1.4.1