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: jaugusto
Subject: Re: [shell-script] BASH nao esta expandindo...
Date: Wed, 17 Oct 2001 18:23:03 -0200

 Pessoal

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.

[ ]'s a todos da lista

José Augusto Martins Nieviadonski
Analista de Suporte Consultor/Instrutor
HSBC Bank Brasil S.A. - Banco Múltiplo
Treinamento de Informática

Enviado por : Alex Soares <address@hidden> - 17/10/01 3:55:23 PM

Para : <address@hidden>
CC   :
Assunto : [shell-script] BASH nao esta expandindo...

amigos-lhes,

venho perante vos, apresentarvos um problema interessante.

por alguma razao alheia ao universo,  meu bash nao esta expandindo
comparacoes como deveria...
por exemplo:

i="tty1"
if [ $i == "tty[1-9]" ]; then
  echo " OK"
  else
  echo " not OK"
fi

nao funciona nem por um nada. o bash insiste em nao expandir corretamente
como deveria.

expliquem-me oh sagrados mestres da sabedoria superior oq o tonto aqui ta
fazendo errado?



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


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




This message and any attachments are confidential to the ordinary user of
the e-mail address to which it was addressed and may also be privileged. If
you are not the adressee you may not copy, forward, disclose or use any
part of the message or its attachments and if you have received this
message in error, please notify the sender immediately by return e-mail and
delete it from your system.
Internet communications cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, arrive late or contain
viruses. The sender therefore does not accept liability for any errors or
omissions in the context of this message which arise as a result of
Internet transmission.



reply via email to

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