Commit b39a6d72 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add test_local.sh

parent f06acb0c
#!/bin/sh
func()
{
echo "1"
echo "2"
echo "3"
}
test_func()
{
local var=$(func)
echo "$var"
}
test_func
[ "$(test_func)" = "1 2 3" ] || echo "Error with local!"
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