Re: [PATCH] Update bash completions to prevent unbound variable errors.

From
Ted Pavlic <hidden>
Date
2016-06-15 22:45:56
Reply to
Adeodato Simó, 2016-06-15
Because (from a quick look) their completion script never expands a
variable which is not known to be set.
They use $1, $2, etc. In fact, they use $1, $2, and $3 in their _hg, which is their main completion function. Why would those be defined there?

In fact, it's $1, $2, $3, and $4 that are causing the problemw ith the git completions.

--Ted

-- 
Ted Pavlic [off-list ref]

  Please visit my ALS association page:
        http://web.alsa.org/goto/tedpavlic
  My family appreciates your support in the fight to defeat ALS.
Thread (14 messages) 14 messages, 4 authors, last reply 2016-06-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help