improve bash history importing

Reject more invalid commands from the bash history file.

Fixes #3636
This commit is contained in:
Kurtis Rader
2017-05-20 21:03:31 -07:00
parent 0b976a1843
commit 6c4a51d56e
3 changed files with 33 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
echo foo
history --help
#1339718290
export HISTTIMEFORMAT='%F %T '
export XVAR='exported'
#1339718298
echo supsup
#abcde
@@ -11,4 +11,9 @@ echo hello \
final line
another `command
and arg` to skip
backticks `are not allowed`
a && echo invalid construct
[[ x = y ]] && echo double brackets not allowed
(( 1 = 2 )) && echo double parens not allowed
posix_cmd_sub $(is not supported)
sleep 123