Quotes psc-docs examples. - #1814
Conversation
|
A side-note (asked in IRC): is the |
|
It's odd, I've seen someone else say they need quotes for the globs to work too (in fact they don't work if I use single quotes, but do with double quotes), but I definitely do not on Windows or OSX. What platform/shell are you using? |
(OS X, 10.10.5) |
|
It requires quotes, because otherwise bash will try to expand the globs. Which just means you'll probably end up passing in an empty list of files. |
|
The key seems to be what glob-expansion capabilities the shell has. Assume a directory structure that looks like: Bash 3: Bash 4 and zsh have proper In my particular example, So the example in the current help text works by accident in some environments because some shells have proper expansion and some don't. When given to psc-docs as a quoted string, |
|
Do double quotes work for you then? As single quoting the globs prevents them from working at all on Windows at least, although double quoting does still work. |
a10c26b to
9aa05e3
Compare
|
Oh damn, I forgot about Windows again. Yes, double-quotes work; I've updated the branch to reflect this. |
|
LGTM 👍 |
|
Thanks! |
Currently:
With this change:
This was triggered by a good half-hour of digging around in Pulp trying to figure out why the examples from the
psc-docshelp weren't working. I eventually figured out the shell expansion was the difference betweenpulp docsworking and my manual attempts not.For example:
I don't know why the latter fails, only that it does right now.