Damus
navi · 1w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqysufjjd485tftr4wy2a83fqyqvtfq0yn820gl8vl6hcsdz8uv2hsu08m52 for the kill one though If the first argument is a negative integer, it shall be inte...
Laurent Bercot profile picture
@navi @Haelwenn /элвэн/ :triskell: it's one of the reasons why I'm so reluctant to implementing some kind of coreutils (beyond the obvious reason that it's huge work): it's a place that carries a lot of historical weight that overrides good practices and habits that were identified and standardized later.

kill is a prime example: kill -1 -1 is a valid command, and the former -1 doesn't mean the same thing as the latter.

😱

And it's like this every time. No wonder new implementations have so many CVEs. coreutils is full of pitfalls.
2
Haelwenn /элвэн/ :triskell: · 1w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq0jkeeqdl7q22gw8ax79e4r84e6smhz2wk3ew80ph06nljukle83ql7euty nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqf67qrzm95xe497g0jda70x6uxwr9ru2j39sg38axfj4ff05c979q3gaasw Well for kill(1) one probably could just toss out the kill [-signum|-sig...
navi · 1w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq0jkeeqdl7q22gw8ax79e4r84e6smhz2wk3ew80ph06nljukle83ql7euty nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqysufjjd485tftr4wy2a83fqyqvtfq0yn820gl8vl6hcsdz8uv2hsu08m52 i know it's historical, but i still want to know who thought `-$num` w...