diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | bisonfix.awk | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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 |