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

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

Re: Erro em script


From: Leogildo
Subject: Re: Erro em script
Date: Thu, 20 Oct 2005 13:24:56 -0000
User-agent: eGroups-EW/0.82

Ae Luis Gustavo,

E qual é o conteúdo de ${1} ?

--- Em address@hidden, "Luis Gustavo" 
<gustavo@m...> escreveu
> Bom dia!
> 
> Tenho um script e apresenta o seguinte erro :
> 
> ./acertar_horario.sh: line 14: [: -le: unary operator expected
> 
> 
> acertar_horario.sh:
> 13 function zeroesq(){
> 14  if [ $1 -le 10 ]
> 15  then
> 16    zero="0$1"
> 17  else
> 18    zero="$1"
> 19  fi
> 20  echo "$zero"
> 21  }
> 
> oque pode ser ?
> 
> LG



reply via email to

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