|
The use of square brackets is another way
of using the "test" command. Note on the
square brackets... You must have a white
space after the open bracket and before the
close bracket: [ "$somevar" = "somestring" ]
The code: if "$all_recs" = "ALL"; then
...neither had the "test" nor the [ ] and you
need one OR the other.
|