From b9a98c7942c0f6b045a5bfa7c7ec4e40f1264e2d Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Wed, 3 Dec 2008 15:10:32 -0500 Subject: add comments to bugs. --- website/bugs/posix_compliance.mdwn | 3 +++ website/bugs/use_getopts_instead_of_getopt.mdwn | 6 ++++++ 2 files changed, 9 insertions(+) (limited to 'website/bugs') diff --git a/website/bugs/posix_compliance.mdwn b/website/bugs/posix_compliance.mdwn index c2908ad..d418e98 100644 --- a/website/bugs/posix_compliance.mdwn +++ b/website/bugs/posix_compliance.mdwn @@ -7,3 +7,6 @@ bashism at the moment, so this may not be trivial. For instance: servo:~/cmrg/monkeysphere/git 0$ checkbashisms -f src/monkeysphere-server 2>&1 | wc -l 50 servo:~/cmrg/monkeysphere/git 0$ + +It looks like the biggest complication for this would be the +occasional use of bash arrays. diff --git a/website/bugs/use_getopts_instead_of_getopt.mdwn b/website/bugs/use_getopts_instead_of_getopt.mdwn index db087b4..af4c17a 100644 --- a/website/bugs/use_getopts_instead_of_getopt.mdwn +++ b/website/bugs/use_getopts_instead_of_getopt.mdwn @@ -2,3 +2,9 @@ Since Monkeysphere is using bash, it would be nice to use the shell build in getopts function, instead of the external getopt program. This would reduce an external dependency, which would definitely be better for portability. + +--- + +So it looks like the sh built-in getopts does not include long options +(eg. "--expire"). Is it worth getting rid of the long options for +this? -- cgit v1.2.3 From cbe3a41096ce1a30e20c419df3bb565fe2e52fcb Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Mon, 15 Dec 2008 17:57:59 -0500 Subject: suggesting simpler approach to getopt. --- website/bugs/use_getopts_instead_of_getopt.mdwn | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'website/bugs') diff --git a/website/bugs/use_getopts_instead_of_getopt.mdwn b/website/bugs/use_getopts_instead_of_getopt.mdwn index af4c17a..2ec68d6 100644 --- a/website/bugs/use_getopts_instead_of_getopt.mdwn +++ b/website/bugs/use_getopts_instead_of_getopt.mdwn @@ -8,3 +8,12 @@ better for portability. So it looks like the sh built-in getopts does not include long options (eg. "--expire"). Is it worth getting rid of the long options for this? + +--- + +Why not just get rid of getopts altogether and perform a simple +argument-processing loop with bash string tests? We're only invoking +getopt in three places, and each invocation is no more complex than +three arguments -- and most arguments take a separate parameter, which +means that handling tricky arg blobs like -aCxr are not gonna be +supported anyway. -- cgit v1.2.3