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

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

Re: [shell-script] CASE + Função


From: Eliphas Levy Theodoro
Subject: Re: [shell-script] CASE + Função
Date: Fri, 24 Feb 2006 13:59:50 -0300
User-agent: Thunderbird 1.5 (Windows/20051201)

Tiago Barcellos Peczenyj escreveu:
if [ "x$EMAIL" == "x" ]; then
[...]
(o lance do x$VAR == x eu peguei de uns scripts de alguns deamons, achei
interessante).

Porque não usa o "-z" do test?

if [ -z "$EMAIL" ]; then

(só pra saber, sei lá se o -z tem em todos os test's do mundo ;))
--
Eliphas


reply via email to

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