From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 12 Sep 2005 18:01:39 +0400 From: Alexey Tourbin To: ALT Devel discussion list Message-ID: <20050912140139.GK3290@solemn.turbinal.org> Mail-Followup-To: ALT Devel discussion list References: <20050912113551.GI3290@solemn.turbinal.org> <20050912130520.GJ3290@solemn.turbinal.org> <20050912133437.GB25438@basalt.office.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="m+utxuhC6KVTvgNz" Content-Disposition: inline In-Reply-To: <20050912133437.GB25438@basalt.office.altlinux.org> Cc: Subject: [devel] Re: cmdcache 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: Mon, 12 Sep 2005 14:02:58 -0000 Archived-At: List-Archive: List-Post: --m+utxuhC6KVTvgNz Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 12, 2005 at 05:34:38PM +0400, Dmitry V. Levin wrote: > > 1) =EE=C5=C4=CF=D3=D4=C1=D4=CF=DE=CE=CF =C8=CF=D2=CF=DB=C1=D1 =C6=D5=CE= =CB=C3=C9=D1 =C8=C5=DB=C9=D2=CF=D7=C1=CE=C9=D1. =F4.=C5. =C4=CC=D1 some/fi= le.txt > > =C9 some_file.txt =D0=CF=CC=D5=DE=C1=C5=D4=D3=D1 =CF=C4=C9=CE =C9 =D4= =CF=D4 =D6=C5 =CB=C5=DB. =E5=D3=CC=C9 mtime =D5 =DC=D4=C9=C8 =C4=D7=D5=C8 > > =C6=C1=CA=CC=CF=D7 =CF=D4=CC=C9=DE=C1=C5=D4=D3=D1, =D4=CF =CB=C5=DB =CB= =C1=D6=C4=D9=CA =D2=C1=DA =D0=C5=D2=C5=D3=CF=DA=C4=C1=C5=D4=D3=D1, =D7 =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D=C5=C5=D4 =D7=C9=C4 `cmd [args...] path' =C9 =C9=CD=C5=CE=CE=CF =D7 =D4=C1=CB=CF=CD = =D7=C9=C4=C5 =CD=D9 =C9=D3=D0=CF=CC=D8=DA=D5=C5=CD =DC=D4=D5 =CB=CF=CD=C1= =CE=C4=D5 =D7 =D3=CB=D2=C9=D0=D4=C5, =D4=CF =D7 =D4=CF=CD =D6=C5 =D3=CB=D2=C9=D0=D4= =C5 =CD=CF=D6=CE=CF =C2=D5=C4=C5=D4 =DA=C1=D0=C9=D3=C1=D4=D8 =DE=D4=CF-=D4= =CF =D7=D2=CF=C4=C5 =2E cmdcache "" # =C4=C1=CA =C6=D5=CE=CB=C3=C9=C0 alias rpmfile=3D'cmdcache rpmfile' rpmfile() { f=3D"$1"; shift ... } # =DA=C4=C5=D3=D8 =C2=D5=C4=C5=D4 "=D0=D2=CF=CB=D3=C9=D2=CF=D7=C1=D4=D8=D3= =D1" for f; do rpmfile "$f"; done --m+utxuhC6KVTvgNz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFDJYpDfBKgtDjnu0YRApE0AKCK3F9vf4YneWDuzMmbFwcl3j3mFACglLs5 FFR/8A2U8qiHXcKyDTRkqso= =JKhp -----END PGP SIGNATURE----- --m+utxuhC6KVTvgNz--