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

Re: #!/bin/bash ou #!/bin/sh ??



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.

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.

[]'s

--fx



Reply to: