Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated comment regarding the use of 'x' chars for ksh93 on Ubuntu 6.06

git-svn-id: http://shflags.googlecode.com/svn/trunk/source/1.0@115 9d7cb843-df4f-0410-8a79-4785ae5a3405
  • Loading branch information...
commit 53b9028b5b208183b1dfcdebe88e16777247c4ab 1 parent 06b8d86
kate.ward@forestent.com authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/shflags
View
5 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_}"
Please sign in to comment.
Something went wrong with that request. Please try again.