bash3boilerplate/test/scenario/main-longopt/run.sh

17 lines
444 B
Bash
Raw Normal View History

2016-02-16 21:05:11 +00:00
#!/usr/bin/env bash
# set -o pipefail
# set -o errexit
set -o nounset
# set -o xtrace
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
__root="$(cd "$(dirname "$(dirname "$(dirname "${__dir}")")")" && pwd)"
2016-02-16 21:05:11 +00:00
echo "ACCPTST:STDIO_REPLACE_DATETIMES"
2016-02-16 21:05:11 +00:00
(
env LOG_LEVEL=6 bash "${__root}/main.sh" --file /tmp/x;
env LOG_LEVEL=6 bash "${__root}/main.sh" --file=/tmp/x;
env LOG_LEVEL=6 bash "${__root}/main.sh" -f /tmp/x
) 2>&1 |grep arg_f