fish-shell/tests/history_sample_bash
ridiculousfish e43913a547 Stop expanding globs in command position when performing error checking
Before running a command, or before importing a command from bash history,
we perform error checking. As part of error checking we expand commands
including variables and globs. If the glob is very large, like `/**`, then
we could hang expanding it.

One fix would be to limit the amount of expansion from the glob, but
instead let's just not expand command globs when performing error checking.

Fixes #7407
2020-12-22 12:38:51 -08:00

21 lines
415 B
Plaintext

echo foo
history --help
#1339718290
export XVAR='exported'
#1339718298
echo supsup
#abcde
echo hello \
second line \
the `echo third` line \
final line
another `command
and arg` to skip
backticks `are not allowed`
a && echo valid construct
[[ x = y ]] && echo double brackets not allowed
(( 1 = 2 )) && echo double parens not allowed
posix_cmd_sub $(is not supported)
sleep 123
/** # see issue 7407