# $EPIC: unshift_function.txt,v 1.2 2006/08/20 17:37:08 sthalik Exp $ ======Synopsis:====== $__unshift__( ) ======Technical:====== * If the argument is omitted the empty string is returned. * If the argument is omitted the rvalue of $ is returned. * If the value of $ is the empty string, then the value of $ is set to . * If the value of $ is not the empty string, then the value of $ is set to plus a space plus the old value of $. * The new value of $ is returned. * must not be prefixed with a $. ======Practical:====== Whereas the "shift" operation removes the first word from a word list (or variable), the "unshift" operation prepends words to the beginning of a word list in a variable and assigns the result back to the variable. ======Returns:====== The new value of $ after the unshift. ======Examples:====== assign -foo $unshift(foo blah) assigns "blah" to $foo and returns "blah" $unshift(foo booya) prepends "booya " to $foo and returns "booya blah"