Closed polyluxus closed 5 years ago
If the output filename contains a dash, it'll write to stdout. The following regex is to problem:
https://github.com/polyluxus/runxtb.bash/blob/722291fb097e60a190cad7094bc3a460d051dd50/runxtb.sh#L823
The pattern should be ^[[:space:]]*(-|[Ss][Tt][Dd][Oo][Uu][Tt])[[:space:]]*$.
^[[:space:]]*(-|[Ss][Tt][Dd][Oo][Uu][Tt])[[:space:]]*$
https://github.com/polyluxus/runxtb.bash/blob/41f960db323ccdb333dde95944f6c262d3b205ed/runxtb.sh#L819
If the output filename contains a dash, it'll write to stdout. The following regex is to problem:
https://github.com/polyluxus/runxtb.bash/blob/722291fb097e60a190cad7094bc3a460d051dd50/runxtb.sh#L823
The pattern should be
^[[:space:]]*(-|[Ss][Tt][Dd][Oo][Uu][Tt])[[:space:]]*$
.