On Sun, Oct 8, 2017, at 11:24, Dave Cottlehuber wrote:
> I want to write a function that uses the first parameter, and then hands
> the remaining n-1 as subsequent parameters:
> 
> function t
>   urxvtc -title $argv[1] -e $argv $argv[2..]
> end
> 
> Is there anything like a pop or drop function I can apply?

You're almost there.  The first parameter is $argv[1] which you already
have correct.  The rest of the parameters are $argv[2..-1].  See
http://fishshell.com/docs/current/index.html#expand-index-range.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to