Re: [Toybox] Defect in Argument parsing for "#" and "-"

2012-07-03 Thread Ashwini Sharma
On 7/4/12, Rob Landley wrote: > On 07/02/2012 10:05 PM, Ashwini Sharma wrote: >> Hi Rob, >> >> I was using '#' for accepting a integer parameter. As per the parsing >> logic >> you used function atolx(), for converting the string to long. This >> function assumes suffixes with the supplied string

Re: [Toybox] Defect in Argument parsing for "#" and "-"

2012-07-03 Thread Rob Landley
On 07/02/2012 10:05 PM, Ashwini Sharma wrote: > I had a case where depth of traversal was to be defined as cmdline argument. > Giving "kmgtpe" would return zero, whereas I wanted it to only > integers as argument and no alpha characters. By the way, that probably _is_ a bug. If you haven't seen a

Re: [Toybox] Defect in Argument parsing for "#" and "-"

2012-07-03 Thread Rob Landley
On 07/02/2012 10:05 PM, Ashwini Sharma wrote: > Hi Rob, > > I was using '#' for accepting a integer parameter. As per the parsing logic > you used function atolx(), for converting the string to long. This > function assumes suffixes with the supplied string. There are > possibilities that user ma

Re: [Toybox] od (was: Editors and such.)

2012-07-03 Thread Rob Landley
On 07/01/2012 02:47 PM, Andre Renaud wrote: >> If the output of od gets dropped (-EPIPE), what happens? Should it retry >> short writes, which implies xprintf() should do an xmprintf() into a >> malloc buffer and then do a writeall() on it, although I really am >> trying to get automatic retry in t