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 ( #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 rifling through the Monastery: (12)
As of 2014-12-29 15:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (191 votes), past polls