Hi Patsie,
I do not speak much English so I was confused when exposed here, sorryyyy.
my OS is debian squeeze/sid
ROWS to LINES : you're right
netstat.bin: my own script
/dev/zero: data sink for resize output
running your script
Code:
[nothing_user[01:47 AM][~]]$ cat ./test.sh
#!/bin/bash
set -x
old_rows=$LINES
old_columns=$COLUMNS
resize -s 24 108 >/dev/null
netstat $* | less
resize -s $old_rows $old_columns >/dev/null
[nothing_user[01:47 AM][~]]$ ./test.sh
+ old_rows=
+ old_columns=
+ resize -s 24 108
+ less
+ netstat
+ resize -s
can you see that?? old_rows and old_columns are empty!!!
I don't know what happend
I think both script should be work