]> khamidou — GitHub mirrors - arcanist.git/commit
bash completion: work around PHP CLI readline in command substitution
authorChris Piro <cpiro@airtime.com>
Thu, 10 Nov 2011 00:37:32 +0000 (16:37 -0800)
committerChris Piro <cpiro@airtime.com>
Thu, 10 Nov 2011 00:53:46 +0000 (16:53 -0800)
commit2a78b2bffa2dd9d23ab306c2671c0a7273af6410
treee2785600cf2be1f58e9f41c7f5f67b955ed3708d
parent8a7e0b77836f5a3220319c9038453d6a226e6337
bash completion: work around PHP CLI readline in command substitution

Summary: (At least my build of) PHP tries to do readline magic on the terminal
when invoked from the shell, even inside bash's command substitution operator.
Work around it by piping the output of ##echo## to ##php##, so the input isn't a
terminal.

Test Plan: ##bash$ arc li<TAB>## now gives me possible completions rather than
breaking and inserting a literal tab

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley
Differential Revision: 1096
resources/shell/bash-completion