-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ralf Mardorf wrote:
> Hi Gustin :)
>
>>> test.bin\bash: 2: Syntax error: "(" unexpected
>>
>> That is the error you get when using /bin/sh (aka /bin/dash due to the
>> symlink).
>>
>
> /bin/sh is linked with dash and /bin/bash isn't a link, it's bash, both
> by default for 64 Studio 3.0-beta3 amd64, I didn't changed this.
/bin/sh is supposed to be a sym link to /bin/dash, and /bin/bash is not
supposed to be a link but the actual bash binary. I don't see the
problem here.
> Some posts in the www for Ubuntu, not 64 Studio, said the same for
> Ubuntu ... but see below, no "we" know the reason why ;).
I have no idea what you mean by this? The version of bash that supports
arrays has been in Ubuntu for a while now (years I think). Either you
were reading a really old post or the posts you were reading were
written by people who had no idea what they were talking about.
>
>>> spinymouse-s...@64studio:~$ bash --version GNU bash, version
>>> 3.2.39(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2007 Free
>>> Software Foundation, Inc. spinymouse-s...@64studio:~$
>>>
Same version I have in Ubuntu 8.04 and 64Studio, no surprise here.
>>>
>>>> In my experience, Bash is the most common, followed by ash
>>>>
>>> The problem that bash for Ubuntu doesn't know arrays is known. IIUC
>>> bash = POSIX ¬ POSIX = no arrays
>>>
Bash is not strictly POSIX. It supports many things not defined in the
POSIX. Think of POSIX as a lowest common denominator.
<snip>
>> Make the script(s) executable with chmod u+x <scriptname> then
>> ./scriptname to
>> run the script.
>
> I do know this, but I like to use "sh", because it's the simplest and
> fastest way to work ... the way I do work ;).
>
It forces you to use dash, which is not as feature rich as bash.
Seriously, read the Bash beginners guide. Learn to walk before you try
running.
>> Do *NOT* preface the script with sh, this will force
>> your OS to use /bin/sh regardless of the shebang line at the top of your
>> script. /bin/sh is a symlink to /bin/dash which does not support arrays.
>>
> :D
> spinymouse-s...@64studio:~$ gedit
> spinymouse-s...@64studio:~$ chmod u+x test
> spinymouse-s...@64studio:~$ ./test
> /etc
> /usr/local
> /var/log
See arrays work just fine in 64Studio.
<snip>
> The question still is, if arrays are POSIX?! I would like to use arrays
> instead of this "eval"ed variables.
http://www.google.ca/search?q=posix%20arrays
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iD8DBQFK1VS7wRXgH3rKGfMRArysAJ4hnrI4MS/p5XUuQ1YdutfZrIeAaACfVgTG
zRgfhEve4J71jh1YfeNy3TM=
=EzQ5
-----END PGP SIGNATURE-----
_______________________________________________
64studio-users mailing list
[email protected]
http://lists.64studio.com/mailman/listinfo/64studio-users