[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/5652] genscripts.sh fails with BASH_LINENO
From: |
vincent dot riviere at freesbee dot fr |
Subject: |
[Bug ld/5652] genscripts.sh fails with BASH_LINENO |
Date: |
25 Jan 2008 22:55:37 -0000 |
------- Additional Comments From vincent dot riviere at freesbee dot fr
2008-01-25 22:55 -------
Furthermore:
- SVR2 (1984):
- shell functions (sh)
http://www.faqs.org/faqs/unix-faq/faq/part6/
I didn't find any documentation about POSIX. But bash --posix knows about
functions. And dash (ash) knows it, too (without the function keyword).
I really think this patch is good and harmless.
I put the test in a function because the BASH_LINENO (a bash builtin) exists
only in functions ! And as the original code uses functions, it doesn't matter
to add one more.
The original code uses the BASH_LINENO trick in order to produce #line
statements about the original em file into the generated C file. If BASH_LINENO
is available, the script use it. If not, it does not produce #line. The
BASH_LINENO trick is absolutely not mandatory. It just helps to get better
error report when there is a compilation problem in the em file.
Regards,
Vincent
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
http://sourceware.org/bugzilla/show_bug.cgi?id=5652
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/5652] New: genscripts.sh fails with BASH_LINENO, vincent dot riviere at freesbee dot fr, 2008/01/21
- [Bug ld/5652] genscripts.sh fails with BASH_LINENO, vincent dot riviere at freesbee dot fr, 2008/01/21
- [Bug ld/5652] genscripts.sh fails with BASH_LINENO, nickc at redhat dot com, 2008/01/25
- [Bug ld/5652] genscripts.sh fails with BASH_LINENO, schwab at suse dot de, 2008/01/25
- [Bug ld/5652] genscripts.sh fails with BASH_LINENO,
vincent dot riviere at freesbee dot fr <=
- [Bug ld/5652] genscripts.sh fails with BASH_LINENO, vincent dot riviere at freesbee dot fr, 2008/01/26
- [Bug ld/5652] genscripts.sh fails with BASH_LINENO, nickc at redhat dot com, 2008/01/28