From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.2.5 Date: Mon, 16 Dec 2013 20:16:23 +0400 From: Sergey Vlasov To: sisyphus@lists.altlinux.org Message-ID: <20131216161623.GE16548@newmaster.mivlgu.local> Mail-Followup-To: sisyphus@lists.altlinux.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GxcwvYAGnODwn7V8" Content-Disposition: inline In-Reply-To: Subject: Re: [sisyphus] =?koi8-r?b?8NLPIGh0b3A=?= X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Sisyphus discussions List-Id: ALT Linux Sisyphus discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Dec 2013 16:16:36 -0000 Archived-At: List-Archive: List-Post: --GxcwvYAGnODwn7V8 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 15, 2013 at 05:22:43PM +0400, Alexei V. Mezin wrote: > 15.12.2013 17:00, Alexei V. Mezin =D0=C9=DB=C5=D4: > [alexei@bigbear ncurses-5.9]$ echo $LINES $COLUMNS > 56 154 >=20 > =F1 =D4=C1=CB =D0=CF=CE=D1=CC, =DE=D4=CF bash =D7=D9=D3=D4=C1=D7=CC=D1=C5= =D4 =DC=D4=C9 =D0=C5=D2=C5=CD=C5=CE=CE=D9=C5 =D3=C1=CD=CF=D3=D4=CF=D1=D4=C5= =CC=D8=CE=CF. =E1 =C9=DA man=20 > resizeterm >=20 > If the environment variables LINES or COLUMNS are set, this overrides=20 > the library's use of the window size obtained from the operating=20 > system. Thus, even if a SIGWINCH is received, no screen size change may= =20 > be recorded. >=20 > =F4=CF =C5=D3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=D0=D2=CF=C3=C5=D3= =D3=C1 =D0=C5=D2=C5=CD=C5=CE=CE=D9=C5 LINES =C9 COLUMNS: http://git.altlinux.org/gears/r/readline.git?p=3Dreadline.git;a=3Dblob;f= =3Dreadline/shell.c;h=3D346f8113d43d742191f34f431d55e94316e4431d;hb=3Dbc8ee= 94c5760cc286148d7ab25f2606c0eeeb52a#l121 =EF=C4=CE=C1=CB=CF =C2=CC=C9=D6=C5 =CB =CE=C1=DE=C1=CC=D5 =C6=C1=CA=CC=C1 s= hell.c =C5=D3=D4=D8 =D3=CC=C5=C4=D5=C0=DD=C9=CA =CB=CF=CD=CD=C5=CE=D4=C1=D2= =C9=CA: 88 /* All of these functions are resolved from bash if we are linking read= line 89 as part of bash. */ http://git.altlinux.org/gears/r/readline.git?p=3Dreadline.git;a=3Dblob;f= =3Dreadline/shell.c;h=3D346f8113d43d742191f34f431d55e94316e4431d;hb=3Dbc8ee= 94c5760cc286148d7ab25f2606c0eeeb52a#l88 =E9 =C4=C5=CA=D3=D4=D7=C9=D4=C5=CC=D8=CE=CF, =D7 =D3=C1=CD=CF=CD bash =D4= =CF=D6=C5 =CF=D0=D2=C5=C4=C5=CC=D1=C5=D4=D3=D1 =C6=D5=CE=CB=C3=C9=D1 sh_set_lines_and_columns(): http://git.altlinux.org/gears/b/bash.git?p=3Dbash.git;a=3Dblob;f=3Dbash/v= ariables.c;h=3D1c782534e22d77e492cb66cad6d8666c9a911e23;hb=3Dab284e13150cb2= edf3345256c6ddd919babf3a24#l864 =F7 =CF=D4=CC=C9=DE=C9=C5 =CF=D4 =D2=C5=C1=CC=C9=DA=C1=C3=C9=C9 =D7 libread= line, =C6=D5=CE=CB=C3=C9=D1 =C9=DA bash =C9=D3=D0=CF=CC=D8=DA=D5=C5=D4 =CE= =C5 setenv(), =C1 =D7=CE=D5=D4=D2=C5=CE=CE=C0=C0 =C6=D5=CE=CB=C3=C9=C0 bash bin= d_variable(), =CB=CF=D4=CF=D2=C1=D1 =D5=D3=D4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2=C9 libreadline - =D0=C5=D2=C5=CB=D2=D9=D4=C9=C5 =C5=A3 =D2=C5=C1=CC= =C9=DA=C1=C3=C9=C5=CA =C9=DA bash, =D0=D2=C5=C4=D0=CF=CC=C1=C7=C1=D7=DB=C5=C5=D3=D1 =D2=C1=DA=D2=C1=C2= =CF=D4=DE=C9=CB=C1=CD=C9, =CE=C5 =D7=D9=D0=CF=CC=CE=D1=C5=D4=D3=D1. $ gdb bash GNU gdb (GDB) 7.5.0.20121002-alt3 (ALT Linux) Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-alt-linux". For bug reporting instructions, please see: ... Reading symbols from /bin/bash...Reading symbols from /usr/lib/debug/bin/ba= sh.debug...done. done. (gdb) b sh_set_lines_and_columns Breakpoint 1 at 0x42bee0: file ../variables.c, line 869. (gdb) r Starting program: /bin/bash=20 Breakpoint 1, sh_set_lines_and_columns (lines=3D40, cols=3D80) at ../variables.c:869 869 { (gdb) bt #0 sh_set_lines_and_columns (lines=3D40, cols=3D80) at ../variables.c:869 #1 0x000000000046a395 in get_new_window_size (from_sig=3Dfrom_sig@entry=3D= 0,=20 rp=3Drp@entry=3D0x0, cp=3Dcp@entry=3D0x0) at ../../../lib/sh/winsize.c:= 75 #2 0x00000000004331fb in get_tty_state () at ../jobs.c:1968 #3 get_tty_state () at ../jobs.c:1938 #4 0x000000000043380d in initialize_job_control (force=3Dforce@entry=3D0) at ../jobs.c:3598 #5 0x00000000004166c6 in shell_initialize () at ../shell.c:1673 #6 0x0000000000414c33 in main (argc=3D1, argv=3D0x7fffffffe4c8,=20 env=3D0x7fffffffe4d8) at ../shell.c:543 (gdb) c Continuing. Breakpoint 1, sh_set_lines_and_columns (lines=3D40, cols=3D80) at ../shell.= c:126 126 ../shell.c: =EE=C5=D4 =D4=C1=CB=CF=C7=CF =C6=C1=CA=CC=C1 =C9=CC=C9 =CB= =C1=D4=C1=CC=CF=C7=C1. (gdb) bt #0 sh_set_lines_and_columns (lines=3D40, cols=3D80) at ../shell.c:126 #1 0x00007ffff7bc1d2d in _rl_get_screen_size (tty=3D,=20 ignore_env=3D0) at ../terminal.c:299 #2 0x00007ffff7bc23ca in _rl_init_terminal_io (terminal_name=3D) at ../terminal.c:521 #3 0x00007ffff7bc253b in _rl_set_screen_size (rows=3D40, cols=3D) at ../terminal.c:312 #4 0x000000000046a3a3 in get_new_window_size (from_sig=3Dfrom_sig@entry=3D= 0,=20 rp=3Drp@entry=3D0x0, cp=3Dcp@entry=3D0x0) at ../../../lib/sh/winsize.c:= 77 #5 0x00000000004331fb in get_tty_state () at ../jobs.c:1968 #6 get_tty_state () at ../jobs.c:1938 #7 0x000000000043380d in initialize_job_control (force=3Dforce@entry=3D0) at ../jobs.c:3598 #8 0x00000000004166c6 in shell_initialize () at ../shell.c:1673 #9 0x0000000000414c33 in main (argc=3D1, argv=3D0x7fffffffe4c8,=20 env=3D0x7fffffffe4d8) at ../shell.c:543 =F7=C9=C4=CE=CF, =DE=D4=CF =D7=CF =D7=D4=CF=D2=CF=CD =D0=CF =D0=CF=D2=D1=C4= =CB=D5 =D7=D9=DA=CF=D7=C5, =D3=C4=C5=CC=C1=CE=CE=CF=CD =C9=DA=CE=D5=D4=D2= =C9 libreadline, =C2=D9=CC=C1 =D7=D9=DA=D7=C1=CE=C1 =C9=CD=C5=CE=CE=CF =D2=C5=C1=CC=C9=DA=C1= =C3=C9=D1 =C9=DA libreadline, =C1 =CE=C5 =C9=DA bash (=C9=CD=C5=CE=C1 =C6= =C1=CA=CC=CF=D7 =CF=D4=CC=C9=DE=C1=C0=D4=D3=D1). =EB=D3=D4=C1=D4=C9, =C1=CE=C1=CC=CF=C7=C9=DE=CE=C1=D1 =D0=D2=CF=C2=CC=C5=CD= =C1 =CE=C1=C2=CC=C0=C4=C1=C5=D4=D3=D1 =C9 =D7 =D3=C1=CD=CF=CD gdb, =CB=CF= =D4=CF=D2=D9=CA =D4=CF=D6=C5 =C9=D3=D0=CF=CC=D8=DA=D5=C5=D4 libreadline: https://lists.gnu.org/archive/html/bug-readline/2013-09/msg00004.html =F7 =CE=C5=CB=CF=D4=CF=D2=D9=C8 =C4=D2=D5=C7=C9=C8 =C4=C9=D3=D4=D2=C9=C2=D5= =D4=C9=D7=C1=C8 =CB=C1=CB =CD=C9=CE=C9=CD=D5=CD bash =D7=C5=C4=A3=D4 =D3=C5= =C2=D1 =D0=D2=C1=D7=C9=CC=D8=CE=C5=C5 (=CE=C5 =DC=CB=D3=D0=CF=D2=D4=C9=D2=D5=C5=D4 =D0=C5=D2=C5=CD=C5=CE=CE=D9=C5= LINES =C9 COLUMNS): http://lists.gnu.org/archive/html/bug-bash/2013-07/msg00056.html http://lists.gnu.org/archive/html/bug-bash/2013-07/msg00063.html --GxcwvYAGnODwn7V8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iD8DBQFSrydXW82GfkQfsqIRAkiLAJ9UUhyio/j98xcSsOEbyHCwZKs0fgCeNQWP lSwiDRrzbkwfEd5rRCiiZ38= =azzL -----END PGP SIGNATURE----- --GxcwvYAGnODwn7V8--