Commit 2c1a5f02 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add test for quote using

parent 677ea69a
#!/bin/sh
# see libshell
. shell-quote
test1()
{
echo "run with \'$@\'"
echo 1 - $1
echo 2 - $2
echo 3 - $3
test "$2" = "test string" || echo ERROR with $2
}
func()
{
#test1 "$(quote_shell "$@")"
cmd="$(quote_shell "$@")"
test1 "$cmd"
test1 "$@"
test1 $@
}
func -m "test string"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment