Hi It only needs to be quoted if it contains spaces or other special characters. It is standard in man pages that unless otherwise stated each item is a single argument and it is the same for all uses of shell-command in tmux.1 and there are several examples. I don't think it needs to be stated, although we could add an example under run-shell as well.
On Sat, 12 Sep 2020, 18:20 Sivaram Neelakantan, <[email protected]> wrote: > It wasn't obvious to me that [shell-command] needs to be quoted if you > want to pass parameters to the shell command. > > I kept getting errors for 'ls -al' for some time. > > I spent a fair bit of time reading the docs before trying the > "obvious" method. Can this section be modified with the sentence I > added, if there are no side effects? > > run-shell [-b] [-d delay] [-t target-pane] [shell-command] (alias: > run) Execute shell-command in the background > without creating a window. Before being executed, > shell-command is expanded using the rules speci- > fied in the FORMATS section. With -b, the command > is run in the background. -d waits for delay > seconds before starting the command. After the > command finishes, any output to stdout is displayed > in view mode (in the pane specified by -t or the > current pane if omitted). If the command doesn't > return success, the exit status is also displayed. > --> Quote the command and parameters in single or > double quotes if it takes parameters. > > > sivaram > -- > > -- > You received this message because you are subscribed to the Google Groups > "tmux-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/tmux-users/krpqx3v9gidi8w.fsf%40gmail.com > . > -- You received this message because you are subscribed to the Google Groups "tmux-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/CAEdLfcFj0_Mz9iH0NMUChgzCq1Zoh_ptgr7fO%3DSx7WXZDpr2Jg%40mail.gmail.com.
