diff options
author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2018-07-19 17:26:11 +0900 |
---|---|---|
committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2018-07-19 17:26:11 +0900 |
commit | 218a7e324dc52e5b9f2e724c1463fb0643a6036f (patch) | |
tree | eb940be468f2ac54ae24ce6c56c6756b1ede6b6e /Completion/Unix/Type | |
parent | 71bc1296edfc548751354f4bf5832aba3fcd0b95 (diff) | |
download | zsh-218a7e324dc52e5b9f2e724c1463fb0643a6036f.tar.gz zsh-218a7e324dc52e5b9f2e724c1463fb0643a6036f.tar.xz zsh-218a7e324dc52e5b9f2e724c1463fb0643a6036f.zip |
43183: fix '_ttys -o' and use it in _gdb/_pgrep
Diffstat (limited to 'Completion/Unix/Type')
-rw-r--r-- | Completion/Unix/Type/_ttys | 2 |
1 files changed, 1 insertions, 1 deletions
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) ) |