Avoid raw carriage return in scripts.

* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
via tr, rather than with literal byte.
* THANKS: Update.
Reported by Steven R. Loomis; patch suggested by Thomas Dickey.

Signed-off-by: Eric Blake <ebb9@byu.net>
This commit is contained in:
Eric Blake 2008-10-27 16:34:58 -06:00
parent cfa144a955
commit cb34ecf15c
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2008-10-27 Eric Blake <ebb9@byu.net>
Avoid raw carriage return in scripts.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
via tr, rather than with literal byte.
* THANKS: Update.
Reported by Steven R. Loomis; patch suggested by Thomas Dickey.
2008-10-27 Eric Blake <ebb9@byu.net>
Use AS_VAR_ARITH.

1
THANKS
View File

@ -325,6 +325,7 @@ Steve Chamberlain sac@cygnus.com
Steve Huston shuston@riverace.com
Steve Robbins steve@nyongwa.montreal.qc.ca
Steven G. Johnson stevenj@alum.mit.edu
Steven R. Loomis srl@icu-project.org
Stu Grossman grossman@cygnus.com
Sumit Pandya sumit@elitecore.com
Syd Polk spolk@cygnus.com

View File

@ -370,7 +370,7 @@ else
# The final `:' finishes the AND list.
ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
fi]])
ac_cr=' '
ac_cr=`echo X | tr X '\015'`
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
ac_cs_awk_cr='\\r'