37,603 reputation
477122
bio website chrisdown.name
location Malaysia
age
visits member for 3 years, 1 month
seen 8 mins ago

2d
comment Howto adapt this bash construct to a sh valid construct
Arrays are not supported in POSIX sh. This is not a syntax error as much as it is just using a feature that doesn't even exist there. Rewrite your script to not use arrays.
Oct
20
awarded  Good Answer
Oct
20
awarded  Enlightened
Oct
19
awarded  shell
Oct
19
comment unsquashfs fails
What does file file.squashfs say?
Oct
19
revised What does “if !” mean?
Clarify which part of POSIX
Oct
18
awarded  Nice Answer
Oct
18
answered What does “if !” mean?
Oct
17
answered How to use commands on files that start with “-”
Oct
16
comment How can I delete all lines in a file using vi?
@Caleb: Like I said, in any POSIX-compliant shell. :-) Neither of those two situations are POSIX-complaint.
Oct
15
awarded  Good Answer
Oct
13
revised How can I delete all lines in a file using vi?
note that this is not vi
Oct
13
awarded  Nice Answer
Oct
13
revised How can I delete all lines in a file using vi?
edited body
Oct
13
comment How can I delete all lines in a file using vi?
@StéphaneChazelas: Thanks for the note, I've updated the answer.
Oct
13
comment How can I delete all lines in a file using vi?
@Cold: ...once?
Oct
13
answered How can I delete all lines in a file using vi?
Oct
10
revised Why doesn't this sequence of keys, using SyRq, work
added 132 characters in body
Oct
10
answered Why doesn't this sequence of keys, using SyRq, work
Oct
4
comment Allowing web server communication in Linux firewall
Just use RELATED/ESTABLISHED.