Skip to content

Commit

Permalink
updated comment regarding the use of 'x' chars for ksh93 on Ubuntu 6.06
Browse files Browse the repository at this point in the history
git-svn-id: http://shflags.googlecode.com/svn/trunk/source/1.0@115 9d7cb843-df4f-0410-8a79-4785ae5a3405
  • Loading branch information
kate.ward@forestent.com committed Apr 1, 2009
1 parent 06b8d86 commit 53b9028
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/shflags
Expand Up @@ -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_}"
Expand Down

0 comments on commit 53b9028

Please sign in to comment.