Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Git grep command not interpreting flags correctly when an argument
- X-seq: zsh-workers 44325
- From: Sam Houston <sehouston3@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Git grep command not interpreting flags correctly when an argument
- Date: Sun, 19 May 2019 19:09:22 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Le6kb7tPzw6rh/4FT0D3KgQ9jDG2ABrm2nDevmQNYmQ=; b=azXYtdqucVTGx51plKJTeJdhDzGVQei9QhhzmedpFkr+6PEX4B875tkCDCTv66KzWR CreLQep/7ih6TSvptMWxrvdQpLevqRD2Q756cHi3pXNb+7H6dMhoidLe6sSno/KvRe1V EobeivGW9PLtmjd2z15IAgs3Lsq6qkjeoSh2O+O6t7wcyX2ZRh7fTBL3EzuCRzOApywm JkIYGD8wiJlR39Ng0uVyDkFugfqSX7HDJnXzJHNy5Ftj9xxDRPpePaGqK/Ua8Rwx9OmU ImJ5+WfDTGbQ/tZsWwrHBnuoEhT3aQr3vZHUWxWqic8uuSVAqvEbsYeQMxAGue5creKP Py8w==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
In a `bash` shell, in some empty directory, I can run the commands:
```bash
git init
echo "pattern" > file.txt
FLAGS="--untracked --color"
git grep $FLAGS pattern
```
And see the output:
```
file.txt:pattern
```
But in a `zsh` shell, when I run the same commands, I get the following
error:
```
error: unknown option `untracked --color'
```
The error only seems to occur when I pass in with more than one `--` in the
`FLAGS` variable.
My `zsh --version` is `zsh 5.3 (x86_64-apple-darwin18.0)`.
Let me know if I am doing something wrong, or if you need more information.
Thanks,
Sam
Messages sorted by:
Reverse Date,
Date,
Thread,
Author