GNU bug report logs -
#9085
'split' feature request: an option to uses e.g. '.001' as first suffix.
Previous Next
Reported by: SciFi <sci-fi <at> hush.ai>
Date: Thu, 14 Jul 2011 22:35:02 UTC
Severity: wishlist
Merged with 11004
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 9085 <at> debbugs.gnu.org (full text, mbox):
Pádraig, Jim, others,
- Solution 1:
Pádraig wrotes:
> I wonder might we have a separate option, --suffix-start, and
> theoretically that could accept alphabetic options too? I'm not
> suggesting we do this, but it's worth discussion.
That's was my first idea but since your first mail subject was "split
--numeric-suffixes=N" I assumed that you already thought about it as a
bad solution. Wrong assumption I guess.
- Solution 2:
Pádraig wrotes:
> Thinking a bit more about it, it's probably worth to split the short
> and long options. Have -d not take a param as before, and have
> --numeric-suffixes take an optional param.
> To do this, leave 'optional_argument' in the long_opts array, and just
> remove the :: from the getopts call.
Personally, I do prefer the "Solution 1" since the result looks more
consistent, more powerful andf does not change anything to the current
options.
However, it needs more work. It's a very particular week for me
and I will probably miss time and energy to work on this solution before
next week-end.
Anyway, we can talk about the best solution to implement so let me know.
- Note:
Pádraig wrotes:
> Note the SIZE_MAX/sizeof(size_t) restriction was on the -a option, as
> that is later used in a malloc. For -d there would be no such
> restriction, so I'd just use xstrtoumax() != LONGINT_OK
OK, thanks for the note and explanation, I will take this into account.
Cheers,
Jérémy
This bug report was last modified 13 years and 129 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.