Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Just another Perl shrine
 
PerlMonks  

PhilHibbs's scratchpad

by PhilHibbs (Hermit)
on Jun 02, 2004 at 11:28 UTC ( #359351=scratchpad: print w/ replies, xml ) Need Help??

This works in bash:
if [ ${mla} = ${local_auth_n} ]; then if [ -n "${partition_id}" ]; then echo ${mla} ${local_auth_n} ${partition_id} fi fi
This does not:
if [[ ${mla} = ${local_auth_n} && -n "${partition_id}" ]]; then echo ${mla} ${local_auth_n} ${partition_id} fi
What am I doing wrong? All the variables are always numerics except for ${partition_id} which may be blank or numeric.
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2014-04-20 20:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (487 votes), past polls