Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Unix variable question

Re: Unix variable question

From: Sergey V Dolgov <dsv_at_pptus.oilnet.ru>
Date: Tue, 25 Feb 2003 02:49:34 -0800
Message-ID: <F001.005582B1.20030225024934@fatcity.com>


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.ru
 ICQ 160079606
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Sergey V Dolgov
  INET: dsv_at_pptus.oilnet.ru
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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US