Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#15900 - [filesystem] export COLUMNS LINES in /etc/profile should probably be removed?
Attached to Project:
Arch Linux
Opened by Anders Bergh (anders) - Tuesday, 11 August 2009, 12:47 GMT
Last edited by Aaron Griffin (phrakture) - Wednesday, 12 August 2009, 15:41 GMT
Opened by Anders Bergh (anders) - Tuesday, 11 August 2009, 12:47 GMT
Last edited by Aaron Griffin (phrakture) - Wednesday, 12 August 2009, 15:41 GMT
|
DetailsDescription:
nano (and probably other apps as well) in PuTTY becomes garbled when you resize the window. Commenting out "export COLUMNS LINES" in /etc/profile solves it. Additional info: * package version(s) filesystem 2009.01-2 nano 2.0.9-2 Steps to reproduce: Install PuTTY, log in and run nano. Resize the window a bit. Screen will become garbled. |
This task depends upon
Closed by Aaron Griffin (phrakture)
Wednesday, 12 August 2009, 15:41 GMT
Reason for closing: Not a bug
Additional comments about closing: We are all crazy :)
Wednesday, 12 August 2009, 15:41 GMT
Reason for closing: Not a bug
Additional comments about closing: We are all crazy :)
$ echo $COLUMNS $LINES
78 36
$ echo $COLUMNS $LINES
78 43
COLUMNS and LINES should be exported in most terminals anyway, the reason they are in /etc/profile is more of a "just in case" situation
http://bbs.archlinux.org/viewtopic.php?id=29747
Last post in that thread. The application affected was weechat.
zsh, bash, (other shells)
xterm, urxvt, (other terminals)
wget type output (where it rewrites the same line. pacman does this too)
curses apps
ls / resize / ls (to ensure columnar changes are picked up)
Using Terminal.app on OSX (ssh'd into gerolde) works fine, COLUMNS is set properly before, during, and after running vim.
Does gnome-terminal handle SIGWINCH?
With COLUMNS exported, COLUMNS is not updated at all while nano is running.
(again, with PuTTY on windows)
---
COLUMNS
This variable shall represent a decimal integer >0 used to indicate the user's preferred width in column positions for the terminal screen or window; see Column Position. If this variable is unset or null, the implementation determines the number of columns, appropriate for the terminal or window, in an unspecified manner. When COLUMNS is set, any terminal-width information implied by TERM is overridden. Users and conforming applications should not set COLUMNS unless they wish to override the system selection and produce output unrelated to the terminal characteristics.
Users should not need to set this variable in the environment unless there is a specific reason to override the implementation's default behavior, such as to display data in an area arbitrarily smaller than the terminal or window.
---
Interesting. Looks like we should kill it off
EDIT: There is a similar comment for LINES
LOL
well, that's odd. I don't have a /etc/profile.pacnew otherwise I might have noticed (with 2009.07-1). But I guess this could be closed now then.. thanks for your help :)