Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
brokenparser
on Aug 16, 2013
|
parent
|
context
|
favorite
| on:
Web server in one line of bash
Why? It only takes one ^C
kibibyte
on Aug 16, 2013
[–]
For me, it doesn't even respond to ^C (or even ^\). I had to ^Z it, and then `kill %1`.
Could be an OS-dependent thing. I'm using OS X.
Keyframe
on Aug 16, 2013
|
parent
|
next
[–]
Indeed. It could use in front of while loop something like:
int_cmd(){exit 1;}trap 'int_cmd' 2;
brokenparser
on Aug 16, 2013
|
parent
|
prev
[–]
You get what you pay for.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: