GNU bug report logs -
#7624
new line in bash 3.00/3.2.49
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7624 in the body.
You can then email your comments to 7624 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#7624
; Package
coreutils
.
(Sun, 12 Dec 2010 16:26:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
agneray christian <cagneray_devoteam <at> yahoo.fr>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Sun, 12 Dec 2010 16:26:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello,
I have 2 new (to me) problems, probably with differents
causes, so I'm posting each one separatly:
1/ new line in bash 3.00/3.2.49
2/ heap allocation on Windows Vista
1/ new line in bash 3.00/3.2.49
I'm using "sh-3.00" since years on my winXP
desktop. I get used to fews bugs that can be easily avoid ( eg [ ! a file.txt ] ).
Lately, I tried the "bash, version 3.2.49" (Latest Cygwin DLL release version is
1.7.7-1).
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
When I add en # comment at the end of line, the error
vanishes.
The cause can easily be found. In the meantime (3.00 - 3.2)
the newline routine has been changed ; this issue has already been identified,
with no fixed decision cf (2006-06/msg00863)
So when I use a windows editor (notepad.exe) to edit my script I won't
escape this limitation.
Is there any action planned ?
http://cygwin.com/ml/cygwin/2006-06/msg00863.html
/cygdrive/c/Documents: line 48: syntax error near unexpected
token `newline'
I renamed the local "getline" into
"get_line" in all files, and it was enough.
Christian
[Message part 2 (text/html, inline)]
Information forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#7624
; Package
coreutils
.
(Mon, 13 Dec 2010 14:56:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 7624 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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 <at> redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#7624
; Package
coreutils
.
(Mon, 13 Dec 2010 16:02:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 7624 <at> debbugs.gnu.org (full text, mbox):
tags 7634 notabug
close 7634
tags 7624 notabug
close 7624
tags 7625 notabug
close 7625
thanks
Hi Eric,
Thanks for replying. I've tagged a few as non-bugs and closed them.
Added tag(s) notabug.
Request was from
Jim Meyering <jim <at> meyering.net>
to
control <at> debbugs.gnu.org
.
(Mon, 13 Dec 2010 16:05:01 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to agneray christian <cagneray_devoteam <at> yahoo.fr>
Request was from
Jim Meyering <jim <at> meyering.net>
to
control <at> debbugs.gnu.org
.
(Mon, 13 Dec 2010 16:05:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 11 Jan 2011 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 159 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.