diff options
author | kate.ward <kate.ward@forestent.com> | 2009-04-01 03:48:16 +0000 |
---|---|---|
committer | kate.ward <kate.ward@forestent.com> | 2009-04-01 03:48:16 +0000 |
commit | 87b0c2e5bc4aab241c8cfba76a043bae9d642ca3 (patch) | |
tree | 690869f5b0f05b9f8235ea995aa7a17726cfc530 | |
parent | 3a6749792ceed94135de0c15b8c72bb319fe479a (diff) | |
download | shflags-87b0c2e5bc4aab241c8cfba76a043bae9d642ca3.tar.gz |
updated comment regarding the use of 'x' chars for ksh93 on Ubuntu 6.06
-rw-r--r-- | source/1.0/src/shflags | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/1.0/src/shflags b/source/1.0/src/shflags index b848453..cf56e94 100644 --- a/source/1.0/src/shflags +++ b/source/1.0/src/shflags @@ -933,9 +933,8 @@ flags_help() echo "${flags_helpStr_}" >&2 else echo " ${flags_flagStr_} ${flags_help_}" >&2 - # note: the silliness with the x's is purely for ksh93 on Ubuntu 6.06. - # the sed strips the x's back out, plus the zero byte at the end of the - # string passed by echo (C strings are zero byte terminated). + # note: the silliness with the x's is purely for ksh93 on Ubuntu 6.06 + # because it doesn't like empty strings when used in this manner. flags_emptyStr_="`echo \"x${flags_flagStr_}x\" \ |awk '{printf "%"length($0)-2"s", ""}'`" flags_helpStr_=" ${flags_emptyStr_} ${flags_defaultStr_}" |