shell_join_args

On this page
  1. wakterm.shell_join_args({"foo", "bar"})

wakterm.shell_join_args({"foo", "bar"})#

wakterm.shell_join_args joins together its array arguments by applying posix style shell quoting on each argument and then adding a space.

> wakterm.shell_join_args{"foo", "bar"}
"foo bar"
> wakterm.shell_join_args{"hello there", "you"}
"\"hello there\" you"

This is useful to safely construct command lines that you wish to pass to the shell.

Edit this page