#!/bin/bash   var1=10   $var1=20   echo $var1   exit 0
A. program will print 10
B. program will generate a warning message
C. program will print 20
D. both (a) and (b)
Answer:A
#!/bin/bash   var1=10   $var1=20   echo $var1   exit 0
A. program will print 10 B. program will generate a warning message C. program will print 20 D. both (a) and (b)
Explanation:The doller sign ($) is used to access a variable’s value, not to define it.