Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

shell script local variable

#!/bin/bash
create_jail(){
   d=$1  
   echo "create_jail(): d is set to $d"
}

d=/apache.jail

echo "Before calling create_jail  d is set to $d"

create_jail "/home/apache/jail"

echo "After calling create_jail d is set to $d"
Source by bash.cyberciti.biz #
 
PREVIOUS NEXT
Tagged: #shell #script #local #variable
ADD COMMENT
Topic
Name
6+6 =