Linux Online - BASH Programming - Introduction HOW-TO
ZitatAlles anzeigen5.3 Local variables
Local variables can be created by using the keyword local.
#!/bin/bash
HELLO=Hello
function hello {
local HELLO=World
echo $HELLO
}
echo $HELLO
hello
echo $HELLO
ect ect
