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: leslie
Subject: Re: [shell-script] BASH nao esta expandindo...
Date: Thu, 18 Oct 2001 09:38:06 -0200

> 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.
-----------------------------------------------------------------------   


reply via email to

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