Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Unix variable question
Hello Sinardy,
Tuesday, February 25, 2003, 3:28:42 PM, you wrote:
SX> Hi all,
SX> Can someone help me understand this...
SX> ROOT # TEST=${2:-.} SX> ROOT # echo $TEST SX> ROOT #.
SX> what is 2:-.
The construction ${A:-B} is just like oracle nvl function. If variable A is defined and not null then result is A else B.
--
Best regards,
Sergey mailto:dsv_at_pptus.oilnet.ruICQ 160079606
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Tue Feb 25 2003 - 04:49:34 CST