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