mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-30 14:53:11 +00:00
e43913a547
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
20 lines
415 B
Text
20 lines
415 B
Text
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
|