Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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: (5)
As of 2014-10-31 06:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (215 votes), past polls