On Mar 28, 2014, at 10:32 AM, Michael Stillwell <m...@beebo.org> wrote:

> Is there a more natural way of doing shift and pop than "set -e
> foo[1]" and "set -e foo[-1]"?

Those look fine to me, but you could always write your own wrappers:

function shift
    set -e $argv[1][1]
end

function pop
    set -e $argv[1][-1]
end

-Kevin
------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to