Closed DevDorrejo closed 2 years ago
I don't think that code does what you think it does; [
does not have operators like <=
, you are just redirecting stdin from a file called =
, as in < =
. You probably want [ foo -le bar ]
, for "less or equal".
yeah, was the "less or equal", i'm sorry for this.
In the next code
when i do shfmt file.
will sort the
while
the next wayand will break the code.
using [[ ]] will stop this happen, but using a simple [] the format will brake the script.
thanks