aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-01-11 14:14:18 +0200
committerArnold D. Robbins <arnold@skeeve.com>2013-01-11 14:14:18 +0200
commit478109e116820b48e0fa7769698e2498038c11b8 (patch)
treed5e9cc50c04f971cd40895ce14a5156d4edb2451
parent8a64478e8d953ed249ecd18a8ec7fb19f69c167c (diff)
downloadegawk-478109e116820b48e0fa7769698e2498038c11b8.tar.gz
egawk-478109e116820b48e0fa7769698e2498038c11b8.tar.bz2
egawk-478109e116820b48e0fa7769698e2498038c11b8.zip
Minor fix to bisonfix.awk.
-rw-r--r--ChangeLog6
-rw-r--r--bisonfix.awk2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2c2c3968..0c794280 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-01-11 Arnold D. Robbins <arnold@skeeve.com>
+
+ * bisonfix.awk: Adjust ARGV / ARGC to force reading of standard
+ input; apparently needed for Mac OS X. Thanks to Akim Demaille
+ for the report.
+
2013-01-06 Arnold D. Robbins <arnold@skeeve.com>
* io.c (redirect, two_way_open): Set the name field in the
diff --git a/bisonfix.awk b/bisonfix.awk
index a759d25b..de68c739 100644
--- a/bisonfix.awk
+++ b/bisonfix.awk
@@ -19,7 +19,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
-BEGIN { sfile = ARGV[1] ; delete ARGV[1] }
+BEGIN { sfile = ARGV[1] ; ARGV[1] = "-" ; ARGC = 2 }
/^#if.*\\$/ {
line = $0