Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: how do I get the last argument from a list of arguments?



zzapper <david@xxxxxxxxxxxxxx> wrote in 
news:XnsA3648D0E647C1davidrayninfocouk@80.91.229.13:

> p()
> {
> echo "last ${&#64;[-1]}"
> echo "2nd last ${&#64;[-2]}"
> }
> p a b c d


just trying to see if i can display the at sign correctly by using an html 
entity & #64 ;
-- 
zzapper
https://twitter.com/dailyzshtip

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com




Messages sorted by: Reverse Date, Date, Thread, Author