Re: #!/bin/bash ou #!/bin/sh ??
On Sat, 17 May 2003, Fabrício Barros Cabral wrote:
> J. A. Boyd <jaboyd@uol.com.br> wrote:
> > No Linux, ao menos atualmente, e na maioria das distribuições que já
> > usei, o /bin/sh é apenas um link para o /bin/bash, logo, não tem
> > diferença nenhuma.
Não no Debian. Temos o ash/dash, que é bem mais rápido, além de:
> Desculpe contradize-lo, mas tem diferença sim! Diretamente do 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.
fazer diferença para o próprio bash.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
Reply to: