Extend shell argument parsing and quoting compatibility..
commit21d5c08a2aae045b10ece8fab744083b5e5bd325
authorSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Sat, 11 Feb 2017 15:54:03 +0000 (11 16:54 +0100)
committerSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Thu, 13 Apr 2017 14:48:35 +0000 (13 16:48 +0200)
tree6d8e67ff6f19772f35b406d4b1e4c07b0d68fc03
parentcd57ec99e8b4eb9d08d2d5a46d732faf266a6717
Extend shell argument parsing and quoting compatibility..

We yet did neither perform proper quoting at all, and we also did
not support meta control characters.
For now implement ;, but be aware of & and |, too.  We will never
support parsing of (, ), < and >, but we will quote them, for the
sh(1)ell.

So now this is getting as cool as normally expected:

  localopts yes; wysh set verbose; ignerr eval "${@}"; return ${?}

Works.  _If_ `set' is lifted towards future via `wysh', so that
new-style parsing rules are used for the remainder of the line.
12 files changed:
accmacvar.c
attachment.c
cc-test.sh
cmd_arg.c
cmd_tab.h
lex_input.c
nail.1
nail.h
nailfuns.h
send.c
shexp.c
tty.c