On 12/12/2010 08:25 AM, agneray christian wrote: > Lately, I tried the "bash, version 3.2.49" (Latest Cygwin DLL release version is > 1.7.7-1). You may be better off asking questions related to cygwin on the cygwin mailing list. > > Running script now stop during the lexical parsing with > message like: > > /cygdrive/c/open/wpkg/wa.sh: > wa.sh: line 38: syntax error near unexpected token `newline' > > 'cygdrive/c/open/wpkg/wa.sh: > wa.sh: line 38: `;;esac Most likely, you accidentally inserted literal carriage returns (\r) into your file, but did not tell bash that you want to ignore carriage returns. This is a symptom that is typically limited to cygwin installations, and has nothing to do with coreutils. Run 'd2u wa.sh' to remove those carriage returns. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org