2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-02-15 05:28:41 +00:00
Commit graph

1 commit

Author SHA1 Message Date
Fabian Homborg
86133b0a2b Add read --tokenize
This splits a string into variables according to the shell's
tokenization rules, considering quoting, escaping etc.

This runs an automatic `unescape` on the string so it's presented like
it would be passed to the command. E.g.

    printf '%s\n' a\ b

returns the tokens

printf
%s\n
a b

It might be useful to add another mode "--tokenize-raw" that doesn't
do that, but this seems to be the more useful of the two.

Fixes .
2019-12-01 18:14:26 +01:00