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

Re: Bug installation bash ?



Bonjour,

Le mer 04/12/2002 à 17:29, edeveaud@pasteur.fr a écrit :
> >
> > > >#!/bin/bash
> > >         ^^^^
> > > utilise /bin/sh et ca marche...

> sachant que sur une debian on à ceci
> bulgroz:~ > ls -l /bin/sh
> lrwxrwxrwx    1 root     root            4 Oct 29 16:09 /bin/sh -> bash

Même avec ce lien, bash ne réagit pas pareil s'il il est appellé sh (1).
Donc si son script contient des bashismes, il ne fonctionnera plus avec
un #!/bin/sh ...


(1) man bash :
If  bash  is  invoked  with  the name sh, it tries to mimic the startup
behavior of historical versions of sh as  closely  as  possible,  while
conforming  to the POSIX standard as well.


Bruno

-- 
18:30 Salut tous, que me conseillez vous entre slackware 7.1 et debian
      2.2 (je vais avoir les 2) ? merci
18:38 18:30 Emacs, euh non Mandrake.



Reply to: