In what way does the final value of number being assigned by
read var number (and we enter 5) and
number=5 differ? I was making this for loop:
read var number #number=5 factorial=1 i=1 for i in `seq 1 $number` do let factorial=factorial*i done echo $factorial
when I noticed that if the number has the value assigned by the read, rather than direct assigning, it doesn't enter my for. I'm guessing it's because of the data type.