From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 7 Jan 2005 23:18:45 +0300 From: Alexey Tourbin To: devel@altlinux.ru Message-ID: <20050107201845.GI23627@solemn.turbinal.org> Mail-Followup-To: devel@altlinux.ru Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WR+jf/RUebEcofwt" Content-Disposition: inline Subject: [devel] Q: vim and temporary files X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 20:19:03 -0000 Archived-At: List-Archive: List-Post: --WR+jf/RUebEcofwt Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =FA=C4=D2=C1=D7=D3=D4=D7=D5=CA=D4=C5. =EF=CB=C1=DA=D9=D7=C1=C5=D4=D3=D1, vim =D0=C5=D2=C5=CD=C5=DD=C1=C5=D4/=D0= =C5=D2=C5=C9=CD=C5=CE=CF=D7=D9=D7=C1=C5=D4 =D2=C5=C4=C1=CB=D4=C9=D2=D5=C5= =CD=D9=C5 =C6=C1=CA=CC=D9 =CE=C1 =D0=D2=C1=D7=CF =C9 =CE=C1 =CC=C5=D7=CF. =F4.=C5. =D0=CF=D3=CC=C5 = =D2=C5=C4=C1=CB=D4=C9=D2=CF=D7=C1=CE=C9=D1 inode =D5 =C6=C1=CA=CC=C1 -- =C4=D2=D5=C7=CF=CA, "=D3=CF =D7=D3=C5=CD=C9 =D7=D9=D4=C5=CB=C1=C0=DD=C9=CD= =C9". =E1 =C9=CD=C5=CE=CE=CF, =CE=C9=D6=C5=D3=CC=C5=C4=D5=C0=DD=C9=CA =CF= =DE=C5=D7=C9=C4=CE=D9=CA, =CB=C1=DA=C1=CC=CF=D3=D8 =C2=D9 (=C8=C5-=C8=C5), =CB=CF=C4 =CE=C5 =D2=C1=C2= =CF=D4=C1=C5=D4. use File::Temp qw(tempfile); my ($fh, $fname) =3D tempfile(); my $editor =3D $ENV{VISUAL} || $ENV{EDITOR} || "/bin/vi"; my $rc =3D system $editor =3D> $fname; die "$0: Non-zero exit code [$rc] from $editor\n" if $rc; my $txt =3D join "" =3D> <$fh>; nobackup =CE=C5 =D0=CF=CD=CF=C7=C1=C5=D4. =FE=D4=CF =C4=C5=CC=C1=D4=D8? --WR+jf/RUebEcofwt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFB3u6lfBKgtDjnu0YRAmLbAJwN1IqI6YOnkRvJcBCf9X2bkuzuOwCbB5+n flGK5mFu4+9qyfqjH6D5ZRU= =9XY7 -----END PGP SIGNATURE----- --WR+jf/RUebEcofwt--