fish-shell/tests/checks/features-ampersand-nobg-in-token1.fish
Johannes Altmanninger 1e858eae35 tests: filter control sequences only when interactive
This demonstrates that we only write control sequences when interactive.
2024-04-12 12:28:22 +02:00

15 lines
309 B
Fish

#RUN: %fish --features=ampersand-nobg-in-token -C 'set -g fish_indent %fish_indent' %s
echo no&background
# CHECK: no&background
echo background&
# CHECK: background
echo background &
# CHECK: background
wait
echo no&bg | fish_features=ampersand-nobg-in-token $fish_indent --check
echo $status #CHECK: 0