oh-my-fish / plugin-argu

Sane and easy to use argument parser for Oh My Fish!
MIT License
21 stars 2 forks source link

"-e" is treated as "" #3

Open 0ion9 opened 6 years ago

0ion9 commented 6 years ago

for example

By reading the source of argu, I suspect you are running into a problem with echo. To demonstrate

So echo is eating any options that it itself uses.

The appropriate fix is probably to use printf "%s\n" "$argv[1]" (and so on) instead of echo -E "$argv[1]", since printf has no options

Let me know if you think this bug should also be filed upstream; I'm currently undecided on that.

BarbzYHOOL commented 6 years ago

seems related https://github.com/oh-my-fish/plugin-argu/pull/2