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

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

Re: [shell-script] BASH nao esta expandindo...


From: Alex Soares
Subject: Re: [shell-script] BASH nao esta expandindo...
Date: Thu, 18 Oct 2001 15:26:19 -0200 (BRST)

agora sim....
entendi onde estava o erro... sao dois colchetes no IF...

beleza! ta funcionando!

obrigado!

1100001 1101100 1100101 1111000 1100001 1110100 1011010
1100101 1110010 1101111 1001011 1100101 1101100 1110110
1101001 1101110 1100100 1101111 1110100 1100011 1100011

On Thu, 18 Oct 2001 address@hidden wrote:

>
> > Nao sou especialista em bash e sim em ksh e em Korn Shell o teste de
> > igualdade entre string e um padrão deve ser feito com igual apenas e dentro
> > de dois colchetes
> >
> > if [[ $i = tty[1-9] ]]; then
> >
> > Não sei se o bash é compatível com o ksh nesse quesito.
>
> Pelo menos na versão 2.04 que é a que eu utilizo aqui funciona sim :)
>
> 09:31:23 leslie ~/b> I=tty1
> 09:31:50 leslie ~/b> if [[ $I = tty[1-9] ]]; then echo a; fi
> a
> 09:32:13 leslie ~/b>
>
>
> []'s
>
>
> Leslie
>
> --
>
> -----------------------------------------------------------------------
> Leslie H. Watter                             address@hidden
>
> Never be afraid to try something new. Remember, amateurs built the ark.
>               Professionals built the Titanic.
> -----------------------------------------------------------------------
>
> Sair da lista: address@hidden
> Banco Dados:   http://www.egroups.com/group/shell-script
>
> Seu uso do Yahoo! Grupos é sujeito às regras descritas em: 
> http://br.yahoo.com/info/utos.html
>
>



reply via email to

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