home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.gentoo      Stupid OS you gotta compile EVERYTHING      17,684 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 15,948 of 17,684   
   Michael Mauch to Mark Hobley   
   Re: What does the colon minus operator d   
   02 Dec 07 14:23:19   
   
   XPost: comp.os.linux.misc   
   From: michael.mauch@gmx.de   
      
   Mark Hobley wrote:   
      
   > I am looking at a script written for the runscript shell. I have a line as   
   > follows:   
   >   
   > if [[ ${RC_INTERACTIVE:-yes} == "yes" ]] ; then   
   >   
   > I would like to know what the :- (colon minus) operator that follows the   
   > variable name does.   
      
   Like in a normal (POSIX like) shell - "info bash" says:   
      
     ${PARAMETER:-WORD}'   
        If PARAMETER is unset or null, the expansion of WORD is   
        substituted.  Otherwise, the value of PARAMETER is substituted.   
      
   Regards...   
                   Michael   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca