[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] for p; do ... solaris syntax error
From: |
Karl Berry |
Subject: |
[Bug-gnulib] for p; do ... solaris syntax error |
Date: |
Thu, 14 Nov 2002 14:59:45 -0500 |
I just found that
for p; do ...
gets a syntax error with Solaris 2.7 /bin/sh:
/tmp/x.sh: syntax error at line 1: `;' unexpected
I am surprised (make that flabbergasted) at this. Both that such an
obvious bug is there, and that it hasn't been noticed before this (or
maybe it has? It's hard to search for since all the words involved are
English prepositions ...). In fact, I'm wondering if I'm just going
crazy. I did try a couple of different machines.
At any rate, assuming the bug is really there, is there a problem with using
for p in "$@"; do ...
instead? (This will affect mkinstalldirs and texi2dvi for starters.) Or
for p in "${1+"$@"}; do ...
would be better for the sake of Digital Unix/Ultrix perhaps?
I want to make my Texinfo release today, so I'm planning to just change
texinfo's local mkinstalldirs and do it, barring advice that this would
be a horrible mistake.
Thanks,
karl
- [Bug-gnulib] for p; do ... solaris syntax error,
Karl Berry <=