bug#37877: Fix 'shuf -n 0x' and similar problems

2019-10-22 Thread Paul Eggert
I installed into GNU coreutils the attached series of patches, to fix problems like 'shuf -n 0x' where shuf did not diagnose the trailing 'x', along with some other stuff I noticed while looking into the problem. >From d4cbfaeca1e838a0d0373adfbd133a9f5eaa8e87 Mon Sep 17 00:00:00 2001 From: Paul

bug#37864: bug: env exec bomb (no hash bang arg)

2019-10-22 Thread Pádraig Brady
On 22/10/2019 03:13, Michael Coleman via GNU coreutils Bug Reports wrote: One of my users unwittingly stumbled upon the most delightful 'env' bug. It seems to be present in a couple of pretty recent distributions. Try this: #!/usr/bin/env whatever