diff options
author | 2014-09-21 23:34:49 -0700 | |
---|---|---|
committer | 2014-09-21 23:35:19 -0700 | |
commit | 7d7a636f2497dae736c7dc7b2378a7d51e28fd92 (patch) | |
tree | 2a31ffc26c05f6a683ac850f40cae8de889b5255 /parse_util.cpp | |
parent | 2450d00693358bf6466621377f56bb815d44374a (diff) |
Allow running executables with $ in their name.
Fixes #1686
Diffstat (limited to 'parse_util.cpp')
-rw-r--r-- | parse_util.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/parse_util.cpp b/parse_util.cpp index 65cf77b2..13eca166 100644 --- a/parse_util.cpp +++ b/parse_util.cpp @@ -1318,13 +1318,6 @@ parser_test_error_bits_t parse_util_detect_errors(const wcstring &buff_src, pars errored = append_syntax_error(&parse_errors, node, ILLEGAL_CMD_ERR_MSG, command.c_str()); } - // Check that it doesn't contain a variable - // Note this check is clumsy (it doesn't allow for escaping) but it matches what we do in parse_execution - if (command.find(L'$') != wcstring::npos) - { - errored = append_syntax_error(&parse_errors, node, ILLEGAL_CMD_ERR_MSG, command.c_str()); - } - // Check that pipes are sound if (! errored && parser_is_pipe_forbidden(command) && is_in_pipeline) { |