zsh-workers
 help / Atom feed
* Bug with helm command
@ 2019-06-06 12:05 ` Pedro Geadas
  2019-06-07  8:39   ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Pedro Geadas @ 2019-06-06 12:05 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 836 bytes --]

Hi.

I found this bug the other day and I managed to reproduced both in
Linux-Manjaro last version and last version of MacOS.

Using helm, when trying to access an array *"--set-string
array[0].image.tag=test"*, I get this error:
*"zsh: no matches found: --set-string array[0].image.tag=test"* but
if I run the same command from bash, it works as expected.

Full command used:
*"zsh -f helm upgrade -i --namespace dev -f values.yaml --set-string
array[0].image.tag=test deployment ."*

I cannot provide more details from my configuration files, but just running
the command above with helm installed should show you the problem. From
bash, if you don't have the correct files when you try to run the command,
you should see: *"Error: open values.yaml: no such file or directory"*
instead of the error that I'm currently seeing.

Thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug with helm command
  2019-06-06 12:05 ` Bug with helm command Pedro Geadas
@ 2019-06-07  8:39   ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2019-06-07  8:39 UTC (permalink / raw)
  To: Pedro Geadas, zsh-workers

On Thu, 2019-06-06 at 14:05 +0200, Pedro Geadas wrote:
> Using helm, when trying to access an array *"--set-string
> array[0].image.tag=test"*, I get this error:
> *"zsh: no matches found: --set-string array[0].image.tag=test"* but
> if I run the same command from bash, it works as expected.

This is normal zsh behaviour --- it does not behave like bash in many
ways by default.

In this case, the default is to report an error if you use pattern
matching characters but no pattern matched.  The obvious change is
to add

setopt nonomatch

to your ~/.zshrc.  See the manual for more information: possibly the
most useful section is near the top of FILENAME GENERATION in the
zshexpn manual. although you can see a full list of options in the
zshoptions manual.  There's a slightly friendlier discussion of that and
related options in the online user guide, somewhere aroun

http://zsh.sourceforge.net/Guide/zshguide02.html#l15

pws



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20190607031422epcas2p2bebd6e86b67c773d830e766a4b45d6de@epcas2p2.samsung.com>
2019-06-06 12:05 ` Bug with helm command Pedro Geadas
2019-06-07  8:39   ` Peter Stephenson

zsh-workers

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.workers


AGPL code for this site: git clone https://public-inbox.org/ public-inbox