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

Re: array-=$value ?



Am Sonntag, dem 20. August 2006 um 09:01 Uhr, Matthias Kopfermann:
> A question i was not able to answer myself:
> array=( a b c d e)
> array+=f # works
> array-=a # does not work, but why exactly?

Ah, I guess, it's because then it should really delete the
last value and then in this case -=a would do something non
obvious to stay analogue to +=d.



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