Re: [Fish-users] removing a list item in a function

2017-08-23 Thread Kurtis Rader
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)

[Fish-users] removing a list item in a function

2017-08-23 Thread Mark Volkmann
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