Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: sorting/uniq-ing an array?
- X-seq: zsh-workers 4297
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Re: sorting/uniq-ing an array?
- Date: Tue, 11 Aug 1998 10:59:16 -0700
- In-reply-to: <vbg1f3c19s.fsf@xxxxxxxxxxxxxxx>
- References: <19980809025636.18149@xxxxxxxxxxxxxxxxxxxx> <980809044123.ZM19065@xxxxxxxxxxxxxxxxxxxxxxx> <19980809123608.01170@xxxxxxxxxxxxxxxxxxxx> <vbvho1xe7s.fsf@xxxxxxxxxxxxxxx> <980810085553.ZM27103@xxxxxxxxxxxxxxxxxxxxxxx> <35CF1EDF.4728CD91@xxxxxx> <199808101632.RAA32056@xxxxxxxxxxxxxxxxx> <980810111340.ZM27558@xxxxxxxxxxxxxxxxxxxxxxx> <vbg1f3c19s.fsf@xxxxxxxxxxxxxxx>
On Aug 11, 10:31am, Bruce Stephens wrote:
} Subject: Re: sorting/uniq-ing an array?
}
} "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx> writes:
}
} > Standard linked pairs of arrays and colon-arrays behave that way,
} > yes. I'm not (yet) suggesting adding that sort of linkage. I'm
} > interested only in being able to declare a colon-array variable.
} > For example, I can't think of any reason to create ld_library_path
} > as an array.
}
} Being able to create new special variables would be sufficient for
} this specific case.
There are lots of kinds of special variables besides just colon-arrays.
Most of them involve more special handling than just changing the set/get
functions for the values. On further inspection I now understand that
colonarr{set,get}fn are assuming that there's a global char ** somewhere
(pointed to by the param struct) in which to store the associated array
representation, so it's not merely a matter of changing the functions
even for this case.
} I was playing around with a variety of installed
} Tcl libraries, and it was handy to change my LD_LIBRARY_PATH quite a
} lot interactively.
vared works a lot better on colon-arrays (scalars) than on true arrays.
} Indeed, arrays have some nice syntax in zsh, which might be
} convenient. Or are you suggesting using the same syntax for
} colon-arrays?
I'm not (at this point) suggesting changing any syntax other than to
add something to typeset.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author