Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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?

What's my password?
Create A New User
[marioroy]: Thank you Lady_Aleena. I've bookmarked the page.
[1nickt]: folks, would you say that 1.0 is an integer ?
[Lady_Aleena]: 1nickt, I wouldn't, but I'm not normal.
LanX aggrees, LA isn't normal ;-P
[Lady_Aleena]: LanX, thanks bunches.
[Lady_Aleena]: Rigth now I'm ranting in my head about an old subject.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-05-24 18:27 GMT
Find Nodes?
    Voting Booth?