Bug#505140: timelimit: Tries to interpret arguments to commands when they have '-'s

2008-11-12 Thread Peter Pentchev
On Tue, Nov 11, 2008 at 07:41:25PM -0600, John Hasler wrote: Peter writes: Well, this is actually bog-standard getopt(3) behavior... It is standard getopt() behavior to permute the arguments, whence comes the bug. The '+' in the patch below stops it from doing so. Oof! Sorry - that's

Bug#505140: timelimit: Tries to interpret arguments to commands when they have '-'s

2008-11-12 Thread John Hasler
Peter writes: Do you think that this is important enough to warrant a timelimit-1.1-3+lenny1 upload to testing-proposed-updates? I wouldn't. The '--' workaround works well enough. -- John Hasler [EMAIL PROTECTED] Elmwood, WI USA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a

Bug#505140: timelimit: Tries to interpret arguments to commands when they have '-'s

2008-11-11 Thread John Hasler
Peter writes: Well, this is actually bog-standard getopt(3) behavior... It is standard getopt() behavior to permute the arguments, whence comes the bug. The '+' in the patch below stops it from doing so. I've also replaced 'EOF' with '-1' because the latter is what getopt() returns. 'EOF' is a

Bug#505140: timelimit: Tries to interpret arguments to commands when they have '-'s

2008-11-10 Thread Peter Pentchev
On Sun, Nov 09, 2008 at 01:42:38PM -0600, John Hasler wrote: Package: timelimit Version: 1.3-1 Severity: normal Timelimit errors out when the arguments to the commands have leading -'s unless the command is prepended with '--'. Timelimit appears to eat up everything starting with a '-'

Bug#505140: timelimit: Tries to interpret arguments to commands when they have '-'s

2008-11-10 Thread John Hasler
Peter writes: Well, this is actually bog-standard getopt(3) behavior, the same as with many other utilities :) But, yes, you are right, it might be surprising to people who try this first with timelimit. More than a little surprising: thumper/~/test cat file qwerty uiop asdf ghjkl

Bug#505140: timelimit: Tries to interpret arguments to commands when they have '-'s

2008-11-09 Thread John Hasler
Package: timelimit Version: 1.3-1 Severity: normal Timelimit errors out when the arguments to the commands have leading -'s unless the command is prepended with '--'. Timelimit appears to eat up everything starting with a '-' until it consumes a '--'. Example: thumper/~ timelimit -s9 -t5