On Friday 24 July 2009 06:13:55 pm Brian K. White wrote:
I must have missed something. Why do you think these values are not exported? You do realize that lines & columns are dynamic values which at least some terminals and login daemons will continuously adjust right?
de1:~ # echo $LINES $COLUMNS 25 80 de1:~ # echo $LINES $COLUMNS 29 86 de1:~ # sh de1:~> echo $LINES $COLUMNS 29 86 de1:~> cat /etc/SuSE-release openSUSE 11.1 (x86_64) VERSION = 11.1 de1:~>
What the above shows is that I dragged the corner of my PuTTY window (which was connected to sshd, not every terminal client nor every server daemon does this) making the window a little larger and without issuing any commands, and no possibility that any bashrc or inclusions got executed, the values changed, because the terminal told the daemon and the daemon told it's child processes. Spawning a new shell creates a new seperate child process, and the values are still present, which proves that they were exported. I had not changed the window size so they weren't set anew, they had to have been exported to be present at all. Finally that this was an opensuse 11.1 box.
Brian, Try calling them from within a script: #!/bin/bash echo "My Lines: $LINES & My Columns: $COLUMNS" exit 0 That's what got us started... -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org