Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: expansion of environment variables
- X-seq: zsh-users 13882
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: expansion of environment variables
- Date: Thu, 5 Mar 2009 17:21:55 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=BstTHAQEQn4bF/u1E7Wlg6v3qYXAI9wS5JPXQ19AGsc=; b=qvSFfe+erTsZkmP9YULqbQ/DBGY4eZxGqim0gjYrvqT6IA6qvhKjoxIfhxPtGlIYEM PIMO6bb/sL1fOo4OQV7n5zLJDe6rr6F76oTTxA660cf7gIZThpG6UoGxbYDaJ1SKTEn2 hrbkz/cbFgcYzvV6OLvSX5ce5iiOlc6c/3j2o=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=B8P8eOI/pn1z00QjG9WwT2Iip7a9u/z2ap7og5Sg/RcgK4SAPkiKNVCXGYkBXJmM2c cVtsgWjWEJSGx6JA62Dd7CaN8ag8iJlcntM+qwgp/GjN/w75hT7424NBx+7sbl5jrRlC 5uVio/xfGNkEdPwAE0IJDWhcQqvZQFjWBvR94=
- In-reply-to: <090305081548.ZM4603@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <d5baa8100903050235ofd66039jf2c29b58684bc8d8@xxxxxxxxxxxxxx> <090305081548.ZM4603@xxxxxxxxxxxxxxxxxxxxxx>
2009/3/5 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>:
> On Mar 5, 11:35am, ruud grosmann wrote:
> }
> } The new version has a feature that is not in the 3.0 version. I would
> } like to disable the feature, but I am not sure if an option exist for
> } that one. Maybe you can help me.
>
> I don't know why this would have changed, but it does not appear that
> there is any way to turn it off. Both the expand-or-complete and the
> complete-word widgets expand the variable; I would have expected the
> latter not to.
>
> Worse, if I enable the new completion system with 'compinit' then the
> variable doesn't expand but the completion doesn't work. I mention
> this because with the new completion system enabled, the 'suffix'
> zstyle is supposed to control exactly what Ruud is asking about, and
> the default is to have the "old" behavior that he wants.
>
> For benefit of zsh-workers, with compinit this is yet another problem
> in _path_files. At line 479 (latest CVS) it correctly assigns the
> expanded list of files to the tmp2 array (having originally gotten
> them from "compadd -D tmp1" at line 466), but then when building the
> exppaths array at lines 484 or 486, it uses ${tpre}${tsuf} which have
> never been expanded.
>
> I'm also not sure how line 484 can ever be reached, since at 479
> "${(@)tmp2:h}" is always going to strip off any trailing slash. It
> seems a bit strange to compare an entire array to a single pattern
> at line 483 as well, but I guess it works since the last element of
> the array should be representative of any single element.
fwiw it seems to work if $key is a directory, i correctly get
$key/<files here> without $key being expanded. But with a . instead of
a /, i get the same result, that nothing happens.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author