On Tue 24 Apr 2007 02:31:53 NZST +1200, Thomas Schmitt wrote:
There are two old forms of for-loops:
for i ; do
Current bash lists it as valid syntax, so it's not old.
I cannot read from any man pages the correctness of
for i in ; do
Read the man bash again. It's the in being present,
Hi,
me:
There are two old forms of for-loops:
Volker Kuhlmann:
Current bash lists it as valid syntax, so it's not old.
Old in the sense of not the new
for (( expr1 ; expr2 ; expr3 )) ; do list ; done
Old in the sense of being mentioned by S.R.Bourne
in his book The UNIX System.
Read the
On Tue 24 Apr 2007 23:27:15 NZST +1200, Thomas Schmitt wrote:
I read in my man 1 bash:
for name [ in word ] ; do list ; done
Not:
for name [ in [ word ] ] ; do list ; done
And not:
for name [ in word1 word2 ... wordn ] ; do list ; done
yet it works as expected, or in a way to make it
On Wed, Apr 25, 2007 at 01:13:14AM +1200, Volker Kuhlmann wrote:
I have no old authoritative sh at hand, but a Solaris 2.7 /bin/sh
spits a dummy on an empty item list. I view that as a dumb design (one
would have to enclose for loops in a check for empty item lists), since
corrected.
I don't
Hi,
Greg Wooledge:
http://www.opengroup.org/onlinepubs/007908799/xcu/chap2.html#tag_001_009_004_002
First, the list of words following in will be expanded to generate a list
of items. Then, the variable name will be set to each item, in turn,
and the compound-list executed each time. If no
Greg Wooledge [EMAIL PROTECTED] wrote:
You don't have to perform a separate check for an empty item list. This
is perfectly valid, and will do nothing:
words=
for i in $words; do echo hello, world; done
If Solaris's shell is giving any output or errors from the commands above,
then
Thomas Schmitt [EMAIL PROTECTED] wrote:
Hi,
Greg Wooledge:
http://www.opengroup.org/onlinepubs/007908799/xcu/chap2.html#tag_001_009_004_002
First, the list of words following in will be expanded to generate a list
of items. Then, the variable name will be set to each item, in turn,
and
On Wed, Mar 28, 2007 at 11:40:21PM +0200, Joerg Schilling wrote:
FreeBSD User Giacomo [EMAIL PROTECTED] wrote:
Hi.
I have bought recently an external USB DVD writer Samsung Super (model
SE-S184M/EUBN).
I do not succeed in to burn DVD (only CD).
The system (FreeBSD 6,1) recognizes
8 matches
Mail list logo