garabik / grc

generic colouriser
http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
Other
1.9k stars 162 forks source link

Fix grc.fish argument handling bug #235

Closed scratchyone closed 8 months ago

scratchyone commented 8 months ago

This fixes a bug related to grc's handling of arguments when piping to another command in fish shell, the arguments should be quoted, but they weren't. This PR fixes that issue.

Demonstration of the previous issue, obviously this should cat a file named "file with spaces.txt" but it is instead treated as separate files:

❯ cat file\ with\ spaces.txt | cat
cat: file: No such file or directory
cat: with: No such file or directory
cat: spaces.txt: No such file or directory