Variables indicées
Fermé
mtixier
Messages postés
18
Date d'inscription
mardi 25 novembre 2003
Statut
Membre
Dernière intervention
16 juillet 2022
-
26 avril 2004 à 15:40
mtixier Messages postés 18 Date d'inscription mardi 25 novembre 2003 Statut Membre Dernière intervention 16 juillet 2022 - 27 avril 2004 à 09:35
mtixier Messages postés 18 Date d'inscription mardi 25 novembre 2003 Statut Membre Dernière intervention 16 juillet 2022 - 27 avril 2004 à 09:35
1 réponse
jisisv
Messages postés
3645
Date d'inscription
dimanche 18 mars 2001
Statut
Modérateur
Dernière intervention
15 janvier 2017
934
26 avril 2004 à 16:34
26 avril 2004 à 16:34
Hi,
Ceci semble fonctionner:
[johand@zoot] ~ $myarray[1]=toto
[johand@zoot] ~ $myindex=1
[johand@zoot] ~ $echo ${myarray[$myindex]}
toto
[johand@zoot] ~ $echo ${myarray[${myindex}]}
toto
[johand@zoot] ~ $
GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu)
[johand@zoot] ~ $
man bash ...
Johan
The software said "Requires Windows98, Win2000, or better,
So I installed Unix.
Ceci semble fonctionner:
[johand@zoot] ~ $myarray[1]=toto
[johand@zoot] ~ $myindex=1
[johand@zoot] ~ $echo ${myarray[$myindex]}
toto
[johand@zoot] ~ $echo ${myarray[${myindex}]}
toto
[johand@zoot] ~ $
GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu)
[johand@zoot] ~ $
man bash ...
Johan
The software said "Requires Windows98, Win2000, or better,
So I installed Unix.
27 avril 2004 à 09:35
J'ai essayé : ça ne marche toujours pas. MAIS ça marche sur une autre machine Linux RedHat !!!!
Peut-être un Pb d'environnement ?
Je cherche
Merci encore
Michel