Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upHelp users learn to quote arguments with spaces in their shell #756
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running this in a shell such as bash or zsh will not produce the sometimes-expected result of looking up issues under the
help wantedlabel:This is because the value
help wantedshould be quoted or escaped in one's shell to ensure that it's passed as a single value to--label, rather than as two distinct argumentshelp+wanted(where the latter wouldn't be interpreted as relating to--labelat all):This isn't a bug with CLI, but is a common pitfall for shell-users in general that we could ideally help our users detect and recover from. Possible approaches:
gh help issue listdocsgh issue list("wanted"in the above example) and present an error such as “unrecognized argument 'wanted': did you forget to quote values with spaces?”Originally reported by @tierninho
Loosely related issues that stem as consequence of shell behavior (as opposed to being bugs in
gh): #223 #595 #315