On Mon, Dec 13, 2010 at 2:10 AM, i...@whywouldwe.com
<i...@whywouldwe.com> wrote:
> Is there a way to add to the end of an
> environment variable that is an array
> without explicitly specifying the index?

set -Ux PATH $PATH /some/path

[...]
>     set -Ux PATH[-1] /some/path
>
> will change the last element but
>
>     set -Ux PATH[-0]
>
> gives `set: Array index out of bounds`

That would be a good feature.

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to