NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/56496: etcupdate(8) merge formatting issue
The following reply was made to PR bin/56496; it has been noted by GNATS.
From: Hauke Fath <hauke%Espresso.Rhein-Neckar.DE@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: gnats-admin%netbsd.org@localhost, RVP <rvp%SDF.ORG@localhost>
Subject: Re: bin/56496: etcupdate(8) merge formatting issue
Date: Fri, 19 Nov 2021 12:31:43 +0100
On Thu, 18 Nov 2021 22:40:01 +0000 (UTC), RVP wrote:
> On Thu, 18 Nov 2021, Hauke Fath wrote:
> =20
> > Even when all 'tset -Qs' is supposed to do is produce shell-specific=
=3D20
> > command strings for setting TERM?
> =20
> Unfortunately, yes. One has to do `tset -Qs -` to make tset not
> send the term init sequences. You can check this by running both
> command variants under script.
That would be great, except for whatever reason `tset -Qs -` output=20
prepends the terminal string:
% echo `tset -Qs`
set noglob; setenv TERM xterm; unset noglob;
% echo `tset -Qs -`
xterm set noglob; setenv TERM xterm; unset noglob;
% eval `tset -Qs -`
xterm: No absolute path found for shell: set
%=20
> If that tset command is in /etc/csh.login, then all (login-shell) uses o=
f
> csh would show this issue--provided `-oxtabs' is _also_ set.=20
Which the tset command does, for whatever reason.
> In some
> instances it is not, and that would also account for why some folks see
> this issue and others do not.
> =20
> And, since this tab-setting stuff is an xterm feature, once set, will
> propagate to affect other command run in that session--sh for instance
> will appear to suffer this issue as well even when its .rc scripts are
> not running tset at all.
Would it make sense to follow the eval `tset ...` with an 'stty oxtabs'=20
for (at least) TERM =3D=3D xterm, or would I incur any more side-effects?
> Hope this helps...
It did. A lot.
Thanks,
Hauke
--=20
Hauke Fath <hauke%Espresso.Rhein-Neckar.DE@localhost>
Linn=E9weg 7
64342 Seeheim-Jugenheim
Germany
Home |
Main Index |
Thread Index |
Old Index