Site Tools


pop_command

# $EPIC: pop_command.txt,v 1.4 2006/08/29 18:22:56 sthalik Exp $

Synopsis:

pop <variable name>

Technical:

The pop command removes the final word from the value of <variable name>. DOUBLE QUOTED WORDS ARE NOT SUPPORTED (yet). If the value of <variable name> contains only one word, then the variable is unset.

This is an internal alias for the $pop().

Returns:

Removes the last word of the value of <variable name>

Examples:

<file>

assign booya one two three four
pop booya
echo $booya

<file> This outputs “one two three”

History:

This command first appeared in “+7” (post-ircII, pre-EPIC)

pop_command.txt · Last modified: 2006/08/29 20:18 by 127.0.0.1