Gentoo Wiki


Please format this article according to the guidelines and Wikification suggestions, then remove this notice {{Wikify}} from the article

Please improve it in any way that you see fit, and remove this notice {{Cleanup}} from the article. For tips on cleaning and formatting see Cleanup process

The eyesnose operator


The eyesnose operator is used in initialization scripts using the runscript shell. It returns the first operand if it is not null, otherwise it returns the second operand.


In the following example, $a will be set to the value of $b, unless $b is null. If $b is null, $a will take a value of "Zippy".

$a = "${b:-Zippy}"
Retrieved from ""

Last modified: Thu, 06 Dec 2007 02:09:00 +0000 Hits: 1,046