On Wed, Aug 23, 2017 at 7:12 PM, Mark Volkmann
wrote:
> What am I doing wrong in the function below that accepts the name of a
> variable and an item to be removed and attempts to remove it?
>
> function listrm -a listName item
> set list $$listName
> if set -l index (contains -i $item $list)
What am I doing wrong in the function below that accepts the name of a
variable and an item to be removed and attempts to remove it?
function listrm -a listName item
set list $$listName
if set -l index (contains -i $item $list)
set -eg $listName[$index]
else
echo $item was not found