From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 14 Jul 2004 10:24:50 +0400 From: "Alexey I. Froloff" To: ALT Linux Community Subject: Re: [Comm] tty number in script... Message-ID: <20040714062450.GB3155@immo.ru> Mail-Followup-To: ALT Linux Community References: <200407131747.34670.iscander@mercuri.mk.ua> <200407140909.35031.iscander@mercuri.mk.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Y7xTucakfITjPcLV" Content-Disposition: inline In-Reply-To: <200407140909.35031.iscander@mercuri.mk.ua> User-Agent: Mutt/1.5.6+cvs20040413i X-Envelope-To: community@altlinux.ru X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2004 06:24:51 -0000 Archived-At: List-Archive: List-Post: --Y7xTucakfITjPcLV Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Alexandr R Ogurtzoff [040714 10:14]: > > =F7=CF=D0=D2=CF=D3 =CB=C1=CB =CD=CE=C5 =D5=DA=CE=C1=D4=D8 =CE=C1 =CB=C1= =CB=CF=CA =CB=CF=CE=D3=CF=CC=C9 =DA=C1=D0=D5=DD=C5=CE =D3=CB=D2=C9=D0=D4? > > =F4=CF =C5=D3=D4=D8 =C4=CF=D0=D5=D3=D4=C9=CD =D1 =D7 =D0=D2=C9=C7=CC=C1= =DB=C5=CE=C9=C9 =CB=CF=CD=C1=CE=C4=CE=CF=CA =D3=D4=D2=CF=CB=C9 =C8=CF=DE=D5= =D7=C9=C4=C5=D4=D8 =CE=C1 =CB=C1=CB=CF=CA =D0=CF > > =CE=CF=CD=C5=D2=D5 =CB=CF=CE=D3=CF=CC=C9 =D1 =CE=C1=C8=CF=D6=D5=D3=D8 t= ty1-6 ? > =F3=D0=C1=D3=C9=C2=CF =D0=CF=CC=D5=DE=C9=CC=CF=D3=D8! > [iscander@iscander /dev/pts/2 ~]$ PS1=3D"[\u@\h `tty` \w]\$ " > [iscander@iscander /dev/pts/2 ~]$ PS1=3D"[\u@\h `fgconsole` \w]\$ " > [iscander@iscander 7 ~]$ =E1 man `basename $SHELL` =DE=C9=D4=C1=D4=D8 =CE=C5 =D0=D2=CF=C2=CF=D7=C1= =CC=C9? bash: \l the basename of the shell's terminal device name zsh: %l The line (tty) the user is logged in on, without `/dev/' pref= ix. If the name starts with `/dev/tty', that prefix is stripped. --=20 Regards, Sir Raorn. ------------------- [...] =D3=CF=C2=C9=D2=C1=C5=CD=CF=D3=D4=D8 sandman'=CF=CD =C7=C1=D2=C1=CE= =D4=C9=D2=D5=C5=D4 =D3=CF=C2=C9=D2=C1=C5=CD=CF=D3=D4=D8 hasher'=CF=CD =CE=C5 =CD=C5=CE=C5=C5 =DE=C5=CD =CE=C1 90%. -- ldv in devel@ --Y7xTucakfITjPcLV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA9NGyVqT7+fkT8woRAtFwAKCp/ScODZpxk4UDjX3supuNNq2yIgCfcwVf IwgQWsHGu2n6S7KHemvctAM= =1YHL -----END PGP SIGNATURE----- --Y7xTucakfITjPcLV--