Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

PhilHibbs's scratchpad

by PhilHibbs (Hermit)
on Jun 02, 2004 at 11:28 UTC ( [id://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
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found