[wplug] vars in bash?

Christopher DeMarco cmd at alephant.net
Sun Jan 21 13:48:44 EST 2007


On Sun, Jan 21, 2007 at 01:19:55PM -0500, Jonathan Billings wrote:

> export EDITOR=${EDITOR-/usr/bin/emacs}

Close, there's a ``:'' after the parameter name:

    export EDITOR=${EDITOR:-/usr/bin/emacs}


Useful stuff.


-- 
Christopher DeMarco <cmd at alephant.net>
Alephant Systems (http://alephant.net)
PGP public key at http://pgp.alephant.net
+1-412-708-9660


More information about the wplug mailing list