Cheng Renquan wrote:
On Tue, Dec 9, 2008 at 11:40 AM, Chet Ramey <[EMAIL PROTECTED]> wrote:
Investigate patch 44. It should fix this.
From where?
From
ftp://ftp.gnu.org/gnu/bash/bash-3.2-patches/
Or please tell a bash repository version, I'll test it.
Chet
--
``The lyf so s
>
> Hello i would like to pass an array to my script command line argument, but
> only the first element of the array is displayed. Here is my process :
>
> script1:
> my_array=(el1 el2 el3)
> script2 -f $my_array
You're only passing the first element of the array to script2. An
unsubscripted
Hello i would like to pass an array to my script command line argument, but
only the first element of the array is displayed. Here is my process :
script1:
my_array=(el1 el2 el3)
script2 -f $my_array
script2:
while getopts ":f:" opt ; do
case $opt in
f ) arr="$OPTARG" ;;
esac
done
echo "ar
Hello,
So how can i pass the entire array, i m new to shell scripting so i do not
really understand when you talk about unsubscripted word expansion
Thank you for helping.
Chet Ramey wrote:
>
>>
>> Hello i would like to pass an array to my script command line argument,
>> but
>> only the first
Dolphin06 wrote:
> Hello,
> So how can i pass the entire array, i m new to shell scripting so i do not
> really understand when you talk about unsubscripted word expansion
Since programs only take a list of strings as arguments, you have to expand
the array to a list of values. The "[EMAIL PROTEC
On Tue, Dec 09, 2008 at 09:14:51AM -0500, Chet Ramey wrote:
> >
> > Hello i would like to pass an array to my script command line argument, but
> > only the first element of the array is displayed. Here is my process :
> >
> > script1:
> > my_array=(el1 el2 el3)
> > script2 -f $my_array
>
> You
I did the change but i still have only the first element displaying. I must
say that i m using ssh to call script2 on remote server so maybe it is the
problem :
script1
ssh [EMAIL PROTECTED] script2 -f [EMAIL PROTECTED] -d [EMAIL PROTECTED]
and on script2 it only echoes the first element of bo
On bash 3.2 patchlevel 048 (and earlier) there appears to be problems in vi
mode and prompts containing escape characters (such as to get bold text).
To reproduce:
Enter vi editing mode set -o vi
Set the following prompt:
export PS1="[\!] [EMAIL PROTECTED]:\w>"
Type "one two three four five six
I dont get it right, i always display only the first one, and i dont know how
to write a scalar variable.
I tried like this :
ssh [EMAIL PROTECTED] script2 -f "[EMAIL PROTECTED]"
It's not changing anything.
I m using bash.
Thank you.
Stephane Chazelas wrote:
>
> On Tue, Dec 09, 2008 at 09:14:51
Dolphin06 <[EMAIL PROTECTED]> writes:
> I dont get it right, i always display only the first one, and i dont know how
> to write a scalar variable.
> I tried like this :
> ssh [EMAIL PROTECTED] script2 -f "[EMAIL PROTECTED]"
This passes every element of my_array as a separate argument. Also, ssh
Configuration Information [Automatically generated, do not change]:
Machine: powerpc
OS: linux-gnu
Compiler: gcc -I/usr/src/packages/BUILD/bash-3.2
-L/usr/src/packages/BUILD/bash-3.2/../readline-5.2
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc'
-DCONF_OSTYPE='linux-gnu' -DCONF_M
11 matches
Mail list logo