jonas / tig

Text-mode interface for git
https://jonas.github.io/tig/
GNU General Public License v2.0
12.48k stars 611 forks source link

Error when combining `bind` and external command flag `<` in `TIG_SCRIPT` #1357

Open guludo opened 3 weeks ago

guludo commented 3 weeks ago

I'm unable to use the bind command combined with < to exit tig after external command when using TIG_SCRIPT. Here is an example:

$ TIG_SCRIPT=<(echo ':bind generic x <echo hello') tig
tig: Error reading script: Missing '>' from key mapping: <echo hello

The same :bind generic x <echo hello command works fine if executed from the tig ui.