lnav/test/test_shlexer.sh

33 lines
632 B
Bash
Raw Normal View History

#! /bin/bash
export FOO='bar'
export DEF='xyz'
run_cap_test ./drive_shlexer '$FOO'
run_cap_test ./drive_shlexer '${FOO}'
2022-04-30 21:59:20 +00:00
# run_cap_test ./drive_shlexer '\a'
run_cap_test ./drive_shlexer '\'
run_cap_test ./drive_shlexer "'abc'"
run_cap_test ./drive_shlexer '"def"'
run_cap_test ./drive_shlexer '"'"'"'"'
run_cap_test ./drive_shlexer "'"'"'"'"
run_cap_test ./drive_shlexer '"abc $DEF 123"'
run_cap_test ./drive_shlexer '"abc ${DEF} 123"'
run_cap_test ./drive_shlexer "'abc \$DEF 123'"
run_cap_test ./drive_shlexer 'abc $DEF 123'
run_cap_test ./drive_shlexer '~ foo'
run_cap_test ./drive_shlexer '~nonexistent/bar baz'