[Tcsh] Issue with tcsh :t modifier when no path given

Kimmo Suominen kim at netbsd.org
Wed Jun 12 05:44:48 UTC 2024


On Tue, Jun 11, 2024 at 04:15:41PM -0700, David Ljung Madison Stellar wrote:
> Found an issue with the tcsh :t history modifier that did not use
> to be a problem.  The :t modifier fails if the word has no path,
> which is not only difficult to deal with, but also not consistent with :r.

The following patch fixes it for both :t and :h with history references:
https://github.com/tcsh-org/tcsh/commit/7d44f1d365d4a2527ea68f3cc963f89c9b82eb7e.patch

Possibly :h used to fail before, but I think it should work the same for
history references as it does for variable references.

Basically reverting this commit with slight modification:
https://github.com/tcsh-org/tcsh/commit/05d3d6bfc22462584f9347493499621056995ac1

Which was in turn addressing behaviour change from this commit:
https://github.com/tcsh-org/tcsh/commit/ccd1e6dcea7ac76796f27ecc6d32d3728bedec9e

Cheers,
+ Kimmo



More information about the Tcsh mailing list