[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ANN: ncurses-6.4-20230708
From: |
Sven Joachim |
Subject: |
Re: ANN: ncurses-6.4-20230708 |
Date: |
Sat, 22 Jul 2023 19:58:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On 2023-07-22 11:52 -0400, Thomas Dickey wrote:
> On Mon, Jul 10, 2023 at 01:30:58PM -0400, Thomas Dickey wrote:
>> ----- Original Message -----
>> | From: "Sven Joachim" <svenjoac@gmx.de>
>> | To: "Thomas Dickey" <dickey@his.com>
>> | Cc: "Ncurses Mailing List" <bug-ncurses@gnu.org>
>> | Sent: Monday, July 10, 2023 11:23:24 AM
>> | Subject: Re: ANN: ncurses-6.4-20230708
>>
>> | On 2023-07-09 00:40 +0000, Thomas Dickey wrote:
>> |
>> |> 20230708
>> |> + disallow using $TERMINFO or $HOME/.terminfo when tic "-o" option is
>> |> used (report by Sven Joachim, Debian #1040048).
>> |
>> | Thanks for implementing that. Unfortunately it seems to have introduced
>> | a new problem: if TERMINFO is set to a non-existent directory, tic will
>> | write to ${HOME}/.terminfo rather than the system database when run as
>> | root:
>>
>> hmm - I can probably fix that without too much work...
>
> maybe not: the change I made was only if "-o" is set.
> I did that to provide a more reliable method of scripting/packaging.
>
> If "-o" is not set, there is no change to the way environment variables
> are used. The existing --disable-root-environ option applies to this case.
Huh, indeed.
>> | ,----
>> || # tic -V
>> || ncurses 6.4.20230708
>> || # ncurses6-config --terminfo
>> || /etc/terminfo
>> || # infocmp dumb > dumb.ti
>> || # TERMINFO=/no/such/dir HOME=/ tic dumb.ti
>> || # ls /etc/terminfo/d
>> || ls: cannot access '/etc/terminfo/d': No such file or directory
>> || # ls /.terminfo/d
>> || dumb
>> || #
I still consider this behavior a bug, but now I see it is not a
regression. One more reason to use the -o option rather than setting
TERMINFO.
Have a nice weekend,
Sven