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

- From: Ted Pavlic \<hidden\>
- Date: 2016-06-15 22:45:56 
- List: git
- Page: https://ratatoskr.run/git/2016/06/7390570
- Thread: https://ratatoskr.run/git/2016/06/7391891/t.md

```text
> 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 [ref]

  Please visit my ALS association page:
        http://web.alsa.org/goto/tedpavlic
  My family appreciates your support in the fight to defeat ALS.
```
