[lang-ref] ( handle_args ) ( bash )
@test "handle args" {
command01() {
# [ "$0" = "command01" ] # no, $0 shows caller command
[ "$1" = "A" ]
[ "$2" = "B" ]
[ "$3" = "C" ]
[ $# -eq 3 ]
}
command01 A B C
}
@test "handle args" {
command01() {
# [ "$0" = "command01" ] # no, $0 shows caller command
[ "$1" = "A" ]
[ "$2" = "B" ]
[ "$3" = "C" ]
[ $# -eq 3 ]
}
command01 A B C
}