93 reputation
18
bio website twitter.com/JamesDenholm
location Melbourne, Australia
age 22
visits member for 3 years, 1 month
seen Jul 26 at 5:43

(James' about me is currently blank)


May
31
awarded  Editor
May
31
revised Using regex in for loop
Emphasised that $gpat isn't a regex.
May
24
comment Python file issue from root path
Assuming that the Storage class is an extension of a file object (as I couldn't find it in the standard docs), this being the problem can be checked by printing ` os.path.dirname(os.path.realpath(storage))` post-assignment. Because yay, debugging?
May
24
comment Using regex in for loop
That's weird, because then the earlier lines should have worked as well - all the above line does differently is define the pattern in the expansion rather than deferring to a string variable. If you don't have extglobs set, or were using your original array variable instead of a globbing pattern, that would be a possible reason...
May
23
comment Using regex in for loop
Should work, then... What's the output of for f in *; do echo -- "$f" "${f//[%>#]/}"; done?
May
23
comment Using regex in for loop
Ah, of course - I glossed over the OS X tag, sorry. After a quick bit of searching, it appears that the default OS X shell might not be /bin/bash - Could you provide the output of echo $SHELL and bash --version?
May
23
answered Using regex in for loop
May
23
comment Using regex in for loop
Minor note: I assume the double-hyphen is misplaced in the provided echo call?
May
23
awarded  Autobiographer
May
22
awarded  Teacher
May
21
answered gcc produces erroneous “No such file or directory” under Cygwin
May
21
awarded  Citizen Patrol
Nov
26
awarded  Notable Question
Oct
30
awarded  Supporter
Mar
11
awarded  Popular Question
Jul
19
awarded  Scholar
Jul
19
accepted Foreign characters won't display in SSH
Jul
19
comment Foreign characters won't display in SSH
Ah! That'd be the problem: I "use" en_AU.utf8 locally, which seemed to be already forwarded to the server (or, at least, the locale outputs matched). However, locale -a remotely gave only en_GB.utf8 and en_US.utf8. Thanks!
Jul
19
comment Foreign characters won't display in SSH
Thanks @enzotib - Your comment twigged me onto the idea that the offered locales might not be the same locally and remotely.
Jul
16
awarded  Student