Hi Marco,
Yes you are correct. It is as you have given :)
Thank you.
On 11/30/05, Marco Gigante <[EMAIL PROTECTED]> wrote:
>
> On Wed, Nov 30, 2005 at 02:39:15AM +0530, Jayesh Jayan wrote:
> > Hi,
> >
> > Today I was trying to script using arrays in FreeBSD 5.4 but it doesn't
> > work.
> >
> >
On Tue, 2005-Nov-29 13:34:12 -0800, Freddie Cash wrote:
>/bin/sh on FreeBSD is /bin/sh, the original Bourne shell.
Not quite. The FreeBSD shell has a number extensions beyond the
original Bourne shell - it's more like the Korn shell. The aim is to
make the FreeBSD shell a full POSIX shell.
--
On Wed, Nov 30, 2005 at 02:39:15AM +0530, Jayesh Jayan wrote:
> Hi,
>
> Today I was trying to script using arrays in FreeBSD 5.4 but it doesn't
> work.
>
> Below is a sample script which I used.
>
> **
>
> #!/bin/bash
>
> array=( zero one two
On Tuesday 29 November 2005 04:49 pm, Jayesh Jayan wrote:
> Hi John,
>
> I already have bash installed from ports. It is bash 2.05b.
Then use 'bash foo.sh' :)
--
John Baldwin <[EMAIL PROTECTED]> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
__
Hi John,
yes it works when executed with bash aa.sh.
Thank you :)
On 11/30/05, John-Mark Gurney <[EMAIL PROTECTED]> wrote:
>
> Jayesh Jayan wrote this message on Wed, Nov 30, 2005 at 03:19 +0530:
> > I already have bash installed from ports. It is bash 2.05b.
>
> But below you were running sh, a
Jayesh Jayan wrote this message on Wed, Nov 30, 2005 at 03:19 +0530:
> I already have bash installed from ports. It is bash 2.05b.
But below you were running sh, and not bash... if you do sh array.sh,
it will not reinterpet the #!/bin/bash line, and re-exec it with the
program in part because /bi
Hi Freddie,
Thank you.
I have only installed bash2. I hope that may be one reason.
Anyhow I have got the solution for other people in the list.
Thank you once again.
On 11/30/05, Freddie Cash <[EMAIL PROTECTED]> wrote:
>
> On November 29, 2005 01:09 pm, Jayesh Jayan wrote:
> > Today I was try
Hi John,
Thank you.
It seems to work like a charm.
On 11/30/05, John Baldwin <[EMAIL PROTECTED]> wrote:
>
> On Tuesday 29 November 2005 04:09 pm, Jayesh Jayan wrote:
> > Hi,
> >
> > Today I was trying to script using arrays in FreeBSD 5.4 but it doesn't
> > work.
> >
> > Below is a sample scrip
Hi John,
I already have bash installed from ports. It is bash 2.05b.
On 11/30/05, John-Mark Gurney <[EMAIL PROTECTED]> wrote:
>
> Jayesh Jayan wrote this message on Wed, Nov 30, 2005 at 02:39 +0530:
> > Below is the output.
> >
> > # sh array.sh
>
> Install the bash port (as root: pkg_add -r ba
On November 29, 2005 01:09 pm, Jayesh Jayan wrote:
> Today I was trying to script using arrays in FreeBSD 5.4 but it doesn't
> work.
> Below is a sample script which I used.
> **
> #!/bin/bash
> array=( zero one two three four);
> echo "Elements
On Tuesday 29 November 2005 04:09 pm, Jayesh Jayan wrote:
> Hi,
>
> Today I was trying to script using arrays in FreeBSD 5.4 but it doesn't
> work.
>
> Below is a sample script which I used.
>
> **
>
> #!/bin/bash
>
> array=( zero one two three fo
Jayesh Jayan wrote this message on Wed, Nov 30, 2005 at 02:39 +0530:
> Below is the output.
>
> # sh array.sh
Install the bash port (as root: pkg_add -r bas), and then try again
using bash...
FreeBSD doesn't have bash installed by default (and hence, /bin/sh is
not bash like it is usually on Lin
Hi,
Today I was trying to script using arrays in FreeBSD 5.4 but it doesn't
work.
Below is a sample script which I used.
**
#!/bin/bash
array=( zero one two three four);
echo "Elements in array0: [EMAIL PROTECTED]"
*
13 matches
Mail list logo