FIX shexp parser regarding metachars (and poss. endless <TAB> loop) ..
commit84efbcab6083d5add9ad12af43f0d5db2e693bf6
authorSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Thu, 3 Aug 2017 01:14:41 +0000 (3 03:14 +0200)
committerSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Thu, 3 Aug 2017 01:19:18 +0000 (3 03:19 +0200)
tree9d4fec159a501acf4ced84783553c58a307d58fe
parent995d0bbc85d461557677f6f5001df5769eeceff2
FIX shexp parser regarding metachars (and poss. endless <TAB> loop) ..

I encountered an endless loop when doing "? move &9 +<TAB>".
It turned out that we "keep" metacharacters in this mode,
therefore the "&" was never consumed.

Add a n_SHEXP_STATE_META_MASK, and fix the conditionals to never
honour a shell metacharacter unless the caller has enabled this.
go.c
nail.h
shexp.c