please icon indicating copy to clipboard operation
please copied to clipboard

"please run" not correctly passing through arguments

Open thisguycodes opened this issue 7 years ago • 3 comments

Related #338 ? At least it's certainly a shell quoting issue.

plz run //external/binaries:hub -- "pr list"

Expected output:

git: 'pr list' is not a git command. See 'git --help'.

Actual output:

      #2  pr 2
      #1  pr 1

The actual thing I'm struggling with is: pr list --format="%U %B%n", that space is causing the format param to not get passed through. But I thought this as an example was more communicative of what's happening.

thisguycodes avatar Jun 25 '19 22:06 thisguycodes

Not sure I quite understand what's going on here - for me it seems to work as expected:

$ plz run //tools/misc:hub -- "pr list"
error: invalid key: alias.pr list
git: 'pr list' is not a git command. See 'git --help'.
$ plz run //tools/misc:hub -- pr list
github.com username: 

What does your hub rule look like? Could there be something else between the two that's breaking the string?

peterebden avatar Jul 27 '19 10:07 peterebden

I had written some local tests to validate this problem, and now they're all passing; IDK what changed.

There must have been some problem with my shell state. Sorry for the confusion.

thisguycodes avatar Jul 30 '19 16:07 thisguycodes

No worries, always good to confirm these things!

peterebden avatar Aug 01 '19 07:08 peterebden