Bash: how to read <enter> key
I have the following code snippet:
Code:
#!/bin/bash Code:
./test.sh: line 6: [: =: unary operator expected |
Try this
Code:
#!/bin/bash |
the point is to use quotes (so, "$tmp" instead of $tmp).
|
Thanks!!
it's the double quoting that does it (both in my snippet and in the 'case sollution suggested by Andrew. |
All times are GMT -5. The time now is 03:54 AM. |