[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] regexp in if clauses and Group* information availability



Hi Stefano,

ah, good eye! Elvis should better be `?:`

but the behaviour is somewhat odd - I just tried

> condor_status -lim 1 -comp -af
'regexp("\/cms\/Role=lcgadmin","/cms/Role=lcgadmin" ? : "")'
true

which also evaluates to `true` as well despite the blank?? Tab seems to
be ignored as well.
Does condor's interpreter ignores whitespaces here?

Cheers,
  Thomas


(should be `tab` in `? :` here)
> condor_status -lim 1 -comp -af
'regexp("\/cms\/Role=lcgadmin","/cms/Role=lcgadmin" ? : "")'
true


> condor_status -lim 1 -comp -af
'regexp("\/cms\/Role=lcgadmin","/cms/Role=fooadmin" ?    : "")'
false

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature