[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Pbl avec script sh et Potato



On Thu, Jun 21, 2001 at 08:18:20PM +0200, Jacques L'helgoualc'h wrote:
> Gregoire Welraeds a écrit, dimanche 17 juin 2001, à 16:30 :
> > [...] Il est donc plus prudent d'utiliser "." dans un script qui
> > est susceptible de fonctionner dans plusieurs architectures differentes.
> 
> Oui, mais non :
> 
> lhh $ zsh
> ~ % echo 'toto=rien' > fichier
> ~ % . fichier
> .: aucun fichier ou répertoire de ce type: fichier
> ~ % source fichier
> ~ % echo $toto
> rien
> ~ % 
> 
> Pas glop.

J'ai pas zsh, mais j'imagine que si tu fais
 ~ % . ./fichier
ça marchera. D'ailleurs, voici ce que dit le man de bash:
     When bash is not in posix mode, the current  directory  is searched
     if no file is found in PATH.
Conclusion: ton zsh non plus doit pas être en mode posix, pas glop.

Denis



Reply to: