Glyph on Nostr: If I do this in an interactive Bash session, on Debian: (x=0; while true; do let ...
If I do this in an interactive Bash session, on Debian:
(x=0; while true; do let x=(x+1); echo "$x"; sleep 0.01; done) | less
it gets to the bottom of the terminal, then … backgrounds itself, showing a "[1]+ Stopped" job control message. `kill %1` just stops it again. What is happening here?
Published at
2024-06-05 18:04:16 UTCEvent JSON
{
"id": "29eaf22e80a4adbf1c2a141c9300195c597196b7cdb50bb4367c2c48ccfc94bd",
"pubkey": "bd385aa0b579765c6883c5b0eb17e8ae350c988c659510be1e8453557ee38784",
"created_at": 1717610656,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/glyph/statuses/112565331976612640",
"activitypub"
]
],
"content": "If I do this in an interactive Bash session, on Debian:\n\n(x=0; while true; do let x=(x+1); echo \"$x\"; sleep 0.01; done) | less\n\nit gets to the bottom of the terminal, then … backgrounds itself, showing a \"[1]+ Stopped\" job control message. `kill %1` just stops it again. What is happening here?",
"sig": "0a075e52ad872a5b2ba1f53783a246d39b71aae55c391f70576ea7918d76c2448dca91c9714cca50b71cbfe6c38dc7f55110ac05e39d14e4f58b6ce25fa1506b"
}