2015-12-19 06:39:27 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
export FOO='bar'
|
|
|
|
export DEF='xyz'
|
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_shlexer '$FOO'
|
2015-12-19 06:39:27 +00:00
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_shlexer '${FOO}'
|
2015-12-19 06:39:27 +00:00
|
|
|
|
2022-04-30 21:59:20 +00:00
|
|
|
# run_cap_test ./drive_shlexer '\a'
|
2015-12-24 11:35:02 +00:00
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_shlexer '\'
|
2015-12-24 11:35:02 +00:00
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_shlexer "'abc'"
|
2015-12-19 06:39:27 +00:00
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_shlexer '"def"'
|
2015-12-19 06:39:27 +00:00
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_shlexer '"'"'"'"'
|
2015-12-24 11:35:02 +00:00
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_shlexer "'"'"'"'"
|
2015-12-24 11:35:02 +00:00
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_shlexer '"abc $DEF 123"'
|
2015-12-19 06:39:27 +00:00
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_shlexer '"abc ${DEF} 123"'
|
2015-12-19 06:39:27 +00:00
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_shlexer "'abc \$DEF 123'"
|
2015-12-19 06:39:27 +00:00
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_shlexer 'abc $DEF 123'
|
2015-12-19 06:39:27 +00:00
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_shlexer '~ foo'
|
2015-12-24 11:35:02 +00:00
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_shlexer '~nonexistent/bar baz'
|
2024-03-03 23:27:03 +00:00
|
|
|
|
|
|
|
run_cap_test ./drive_shlexer 'abc '
|