shell-script-pt
[Top][All Lists]
Advanced

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

Re: [shell-script] Erro misterioso...


From: Thomaz de Oliveira dos Reis
Subject: Re: [shell-script] Erro misterioso...
Date: Mon, 19 Oct 2009 11:25:23 -0200

No ubuntu /bin/sh é o dash

$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2008-10-23 06:08 /bin/sh -> dash


2009/10/19 Marcelo Andrade <address@hidden>

>
>
> 2009/10/16 Eri Ramos Bastos <address@hidden <bastos.eri%40gmail.com>
> >
> >
> > É porquê você está tentando usar "bashismos" invocando o bourne shell
> > ao invés do bash.
> > Substitua o seu shebang... Ao invés de #!/bin/sh coloque #!/bin/bash e
> > vai funcionar 100%
>
> Para a gente aprofundar um pouco mais no
> assunto, o /bin/sh não é um mero link para
> /bin/bash nos Linux modernos?
>
> $ ls -l `which sh`
> lrwxrwxrwx 1 root root 4 2009-09-09 10:15 /bin/sh -> bash
>
> Se há diferença, imagino que deva haver um
> tratamento na forma como o shell é invocado
> visando a compatibilidade. Correto?
>
> Atenciosamente.
>
> --
> MARCELO DE F. ANDRADE
> Belem, PA, Amazonia, Brazil
> Linux User #221105
>  
>


[As partes desta mensagem que não continham texto foram removidas]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]