I bet you're using /bin/dash (sh) vs /bin/bash. Or the other way around. If you are using bash I'm not sure you need the double brackets. If you are using dash, switch to bash (unless you know the script was purposefully written for dash). I'm not 100% on the whole double bracket thing, and was just heading to bed, so I guess I'll catch you tomorrow if I don't look it up tonight.
If you were calling it like ./script.sh make sure you have #!/bin/bash at the top of the script, on its own line. Otherwise call it like so: bash script.sh.
I am confused by the usage of bracket, parentheses, curly braces in Bash, as well as the difference between their double or single forms. Is there a clear explanation?
@ProgramFOX @Unihedron More technically, Stack Exchange user (-2) on chat is Stack Exchange if you're in the room & on the profile page, and Feeds in the transcript.
We're scheduled to get some genuine spam dumps eventually, which is awesome. But I just figured out how to run Bayesian algorithms in Python, which just happens to be the language our friendly neighborhood Smoke Detector is written in. What a coincidence!
Yes, I'm planning on putting this learni...
2014-09-17 17:10:50 CSS: a weird color issue?
[[[u'Ok', 1.0]]]
2014-09-17 17:10:53 All recieved VLAN packets are becoming Error Vlan Packets
[[[u'Ok', 0.999]]]
2014-09-17 17:10:55 Scroll to the bottom of ckeditor
[[[u'Ok', 0.993]]]
Here are the titles from the past two months:
https://docs.google.com/a/stackoverflow.com/spreadsheets/d/1RJjQmf9v2bkEwuo39TZH_eSfpaTLWYovWFtLN67YEz8/
I cheated a bit and only listed questions that were deleted by a binding Spam flag from a moderator, but that should account for the majority of...