mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-18 12:33:38 +08:00
512506f0f9
Attempting to execute something like `exec "$test"` results in a fish internal token (a Unicode private use char) being printed in the resulting error message. That's obviously not desirable as well as confusing. Fixes #3187
9 lines
230 B
Fish
9 lines
230 B
Fish
# Test that using variables as command names work correctly.
|
|
|
|
# Both of these should generate errors about using variables as command names.
|
|
# Verify that the expected errors are written to stderr.
|
|
exec $test
|
|
exec "$test"
|
|
|
|
exit 0
|