Re: bash manual/info lacks examples

1999-08-05 Thread Michael Merten
On Thu, Aug 05, 1999 at 04:49:38PM +0200, E.L. Meijer (Eric) wrote: > > > > It's been a LONG time since I've use the authentic one-and-only > > Bourne shell. How many Bourne shell clones do we have floating > > around here these days? > > > > Mike > > I don't know about clones, but I am typing

Re: bash manual/info lacks examples

1999-08-05 Thread E.L. Meijer \(Eric\)
> > It's been a LONG time since I've use the authentic one-and-only > Bourne shell. How many Bourne shell clones do we have floating > around here these days? > > Mike I don't know about clones, but I am typing this on an SGI box where sh _is_ the Bourne shell, and I also have access to a Solar

Re: bash manual/info lacks examples

1999-08-05 Thread Michael Merten
On Thu, Aug 05, 1999 at 02:53:02PM +0200, E.L. Meijer (Eric) wrote: > Says Mike: > > bash shells can do: > > > > let a=$b+$c*$d > > let a=($b+$c)*$d > > > > but if you want to ensure compatibility with Bourne shells like > > ash, you should stick to: > > > > a=$(($b+$c*$d)) > > a=$((($b+$c)*$d)

Re: bash manual/info lacks examples

1999-08-05 Thread E.L. Meijer \(Eric\)
Says Mike: > bash shells can do: > > let a=$b+$c*$d > let a=($b+$c)*$d > > but if you want to ensure compatibility with Bourne shells like > ash, you should stick to: > > a=$(($b+$c*$d)) > a=$((($b+$c)*$d)) but if you want to ensure compatibility with Bourne shells like the Bourne shell :), yo

Re: bash manual/info lacks examples

1999-08-05 Thread Michael Merten
On Thu, Aug 05, 1999 at 10:10:30AM +0200, Andreas Tille wrote: > On Thu, 5 Aug 1999, Mirek Kwasniak wrote: > > > 1) For builtins bash has also help: > > > >$ help let | less > > > > 2) Usage of man (my pager is `less') > > > > > > 3) Usage of info > Please don't understand me wrong. I *f

Re: bash manual/info lacks examples - addendum

1999-08-05 Thread Andreas Tille
Thank you very much Mirek. Yes, I wanted to express, that the use of documentation is limited if there are no examples in it. In the case of `let` it was only my personal problem (which I would be able to solve by searching for my own old example at home ... or by asking you over the list :) ). I

Re: bash manual/info lacks examples

1999-08-05 Thread Mirek Kwasniak
On Thu, Aug 05, 1999 at 10:10:30AM +0200, Andreas Tille wrote: > On Thu, 5 Aug 1999, Mirek Kwasniak wrote: > > > 1) For builtins bash has also help: > > > >$ help let | less > > > > 2) Usage of man (my pager is `less') > > > > > > 3) Usage of info > Please don't understand me wrong. I *f

Re: bash manual/info lacks examples - addendum

1999-08-05 Thread Mirek Kwasniak
Hi again, I read your mail again. I answered in previous message about metods I use for finding information. Your question is about lacking examples either. You are right. Man- and info-pages assume some basic knowledge about computer, os (operating system), programming and technical documentatio

Re: bash manual/info lacks examples

1999-08-05 Thread Andreas Tille
On Thu, 5 Aug 1999, Mirek Kwasniak wrote: > 1) For builtins bash has also help: > >$ help let | less > > 2) Usage of man (my pager is `less') > > > 3) Usage of info Please don't understand me wrong. I *found* the text where the description of let is documented. But what do I have to typ

Re: bash manual/info lacks examples

1999-08-05 Thread Mirek Kwasniak
On Thu, Aug 05, 1999 at 08:49:31AM +0200, Andreas Tille wrote: > Hello, > > every time I read the bash manual to get help I'm missing > examples for the basic usage of a builtin. For instance > I managed to write a simple shell script with a loop which > increased a variable > > i = 0; > while [

bash manual/info lacks examples

1999-08-05 Thread Andreas Tille
Hello, every time I read the bash manual to get help I'm missing examples for the basic usage of a builtin. For instance I managed to write a simple shell script with a loop which increased a variable i = 0; while [ $i -lt $MAX ] ; do echo $i let ... done But I havn't my small loop script h