D
D
Denis Kotlyarov2015-07-27 21:40:22
linux
Denis Kotlyarov, 2015-07-27 21:40:22

Linux, Bash, How to pass variables to functions!?

How to pass variables to functions?
So that later at the end these variables will self-destruct.
Now the function is like this.
function test {
echo '1'
}
test

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2015-07-27
@denisandroid

tldp.org/LDP/abs/html/complexfunct.html

X
Xaser, 2015-07-27
@Xaser

function_name $arg1 $arg2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question