a bash scripting question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Um, I don't think that'll work...  To-wit:

> read $1 $2

There is no reason to do that--the entire point of $1 and $2, is to get
the vars from the command line.

> $var1=$1
> $var2=$2

Unless you're trying to do variable-name variables, the initial dollar
sign ($), will make this break.




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux