On 12/16/09 7:59 AM, Arindam Sarkar - Sun Microsystems wrote: > Configuration Information [Automatically generated, do not change]: > Machine: sparc > OS: solaris2.11 > Compiler: /ws/onnv-tools/SUNWspro/SS12/bin/c99 > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='sparc' > -DCONF_OSTYPE='solaris2.11' -DCONF_MACHTYPE='sparc-sun-solaris2.11' > -DCONF_VENDOR='sun' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -Xc > -features=extinl,extensions -xprefetch=auto -xbuiltin=%none -xnorunpath > -xcsi -xinline=%auto -xustr=ascii_utf16_ushort -xF=%none > -xthreadvar=%all -xspace -xldscope=symbolic -KPIC -mt -D_REENTRANT > -D__EXTENSIONS__=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -D_XOPEN_SOURCE=600 -D_XPG6 -D_POSIX_PTHREAD_SEMANTICS > -D_POSIX_C_SOURCE=200112L -D__XOPEN_OR_POSIX -D_STRICT_STDC > -D_STRICT_STDC__ -D_STDC_C99 -D_ISOC99_SOURCE -D__C99FEATURES__ > -DSOLARIS -m32 -xvis=yes -xmemalign=8i -xregs=appl -xtarget=ultra2 > -xarch=sparcvis -xchip=ultra2 -xO4 -s -DSHELL -DHAVE_CONFIG_H > -DSOLARIS -I. -I. -I./include -I./lib -DTEXT_DOMAIN= > -I/net/train/builds/arindam/6811876/sfwnv/proto/root_sparc/usr/include > -I/net/train/builds/arindam/6811876/sfwnv/proto/root_sparc/usr/sfw/include > -I/net/train/b! > uilds/arindam/6811876/sfwnv/proto/root_sparc/usr/include -Xc > -features=extinl,extensions -xprefetch=auto -xbuiltin=%none -xnorunpath > -xcsi -xinline=%auto -xustr=ascii_utf16_ushort -xF=%none > -xthreadvar=%all -xspace -xldscope=symbolic -KPIC -mt -D_REENTRANT > -D__EXTENSIONS__=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -D_XOPEN_SOURCE=600 -D_XPG6 -D_POSIX_PTHREAD_SEMANTICS > -D_POSIX_C_SOURCE=200112L -D__XOPEN_OR_POSIX -D_STRICT_STDC > -D_STRICT_STDC__ -D_STDC_C99 -D_ISOC99_SOURCE -D__C99FEATURES__ > -DSOLARIS -m32 -xvis=yes -xmemalign=8i -xregs=appl -xtarget=ultra2 > -xarch=sparcvis -xchip=ultra2 -xO4 -s > uname output: SunOS train 5.11 snv_125 sun4u sparc SUNW,Sun-Fire-V890 > Machine Type: sparc-sun-solaris2.11 > > Bash Version: 4.0 > Patch Level: 28 > Release Status: release > > Description: > bash executes command without newline > This bug was assumed to be fixed with the intregation > of bash-4.0, but it is still reproducible.
This is not a bug. Shells dating back to v7 have interpreted EOF as a token delimiter equivalent to newline. Posix standardizes this behavior. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/