From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 11 Sep 2007 21:14:13 +0400 From: Alexey Tourbin To: devel@lists.altlinux.org Message-ID: <20070911171413.GQ6051@solemn.turbinal> Mail-Followup-To: devel@lists.altlinux.org References: <20070911164328.GP6051@solemn.turbinal> <200709111955.41007.ledest@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="owRCMvbHJBIqpgHE" Content-Disposition: inline In-Reply-To: <200709111955.41007.ledest@gmail.com> Subject: [devel] shell dependencies X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2007 17:14:29 -0000 Archived-At: List-Archive: List-Post: --owRCMvbHJBIqpgHE Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 11, 2007 at 07:55:40PM +0300, Led wrote: > > =FC=D4=CF =DE=C9=D3=D4=D9=CA #!/bin/sh =D3=CB=D2=C9=D0=D4, =D7 =CB=CF= =D4=CF=D2=CF=CD =C4=CF=D3=CF=D7=D3=CB=C9=C5 =CF=CB=CF=CE=DE=C1=CE=C9=D1 =D3= =D4=D2=CF=CB \r\n. > > =E9=CD=C5=CE=CE=CF =C9=DA-=DA=C1 =DC=D4=CF=C7=CF =DB=C5=CC=CC =CE=C5 = =CD=CF=D6=C5=D4 =C5=C7=CF =D2=C1=D3=D0=C1=D2=D3=C9=D4=D8. > > > > =F2=C1=CE=D8=DB=C5 =DA=C1=D7=C9=D3=C9=CD=CF=D3=D4=C9 =D7 =DC=D4=CF=CD = =D3=CB=D2=C9=D0=D4=C5 =CE=C5 =C9=D3=CB=C1=CC=C9=D3=D8, =D0=CF=D4=CF=CD=D5 = =DE=D4=CF =CF=CE =CE=C5 > > =C9=D3=D0=CF=CC=CE=D1=C5=CD=D9=CA. =F4=C5=D0=C5=D2=D8 =DA=C1=D7=C9=D3= =C9=CD=CF=D3=D4=C9 =C9=DD=D5=D4=D3=D1 =D7=CF =D7=D3=C5=C8 =DB=C5=CC=CC-=D3= =CB=D2=C9=D0=D4=C1=C8 -- =CB=C1=CB > > =C9=D3=D0=CF=CC=CE=D1=C5=CD=D9=C8, =D4=C1=CB =C9 =CE=C5 =C9=D3=D0=CF=CC= =CE=D1=C5=CD=D9=C8 (rationale: =CE=C5=CC=D8=DA=D1 =CF=D4=CC=C9=DE=C9=D4=D8 = =D3=CB=D2=C9=D0=D4 > > =CF=D4 =C2=C9=C2=CC=C9=CF=D4=C5=CB=C9 =DB=C5=CC=CC-=C6=D5=CE=CB=C3=C9= =CA, =CB=CF=D4=CF=D2=C1=D1 =D0=CF=C4=CB=CC=C0=DE=C1=C5=D4=D3=D1 =DE=C5=D2= =C5=DA "." =C9=CC=C9 source). >=20 > =EF=DE=C5=CE=D8 =DE=C1=D3=D4=CF =C4=C1=D6=C5 =D3=C5=CA=DE=C1=D3 =D0=D2=C9= =C8=CF=C4=C9=D4=D3=D1 =D5=CB=C1=DA=D9=D7=C1=D4=D8: > Autoreq: yes, noshell > =D0=CF=D4=CF=CD=D5 =CB=C1=CB =D7 "=DB=C5=CC=CF=D7=D3=CB=C9=C8 =D3=CB=D2= =C9=D0=D4=C1=C8" =DE=C1=D3=D4=CF, =CE=C1=D0=D2=C9=CD=C5=D2, =D4=C1=CB=CF=C5: > if [ -x /usr/bin/foo1 ]; then > /usr/bin/foo1 .... > elif [ -x /usr/bin/foo2 ]; then > /usr/bin/foo2 > .... > else > .... > fi =FC=D4=CF =D7=D3=C5=C7=C4=C1 =D4=C1=CB =C2=D9=CC=CF, =C9 =DC=D4=C1 =D0=D2= =CF=C2=CC=C5=CD=C1 =D0=CF =D3=D5=D4=C9 =CE=C9=CB=C1=CB =CE=C5 =D3=D7=D1=DA= =C1=CE=C1 =D3 =C2=C9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=C0=D3=D8 "=CE=C5 =C4=CF=D7=C5= =D2=D1=D4=D8". =F7=CD=C5=D3=D4=C5 =D3 =DC=D4=C9=CD =F7=D9 =CC=C9=DB=C1=C5=D4=C5=D3=D8 =D0= =D2=CF=D7=C5=D2=CB=C9 syntax check. Warkaround =C4=C1=D7=CE=CF =C9=DA=D7=C5=D3=D4=C5=CE -- =DA=C1=D7=CF=D2=C1= =DE=C9=D7=C1=D4=D8 =D5=D3=CC=CF=D7=CE=D9=C5 =D0=D5=D4=C9 =D7 =D0=C5=D2=C5= =CD=C5=CE=CE=D9=C5. f1=3D/usr/bin/foo1 f2=3D/usr/bin/foo2 if [ -x "$f1" ]; then "$f1" elif [ -x "$f2" ]; then "$f2" else ... fi =F7 =CF=C2=DD=C5=CD, =CE=C5 =C4=CF=D7=C5=D2=D1=D4=D8 =D0=CF =D5=CD=CF=CC=DE= =C1=CE=C9=C0 =DC=D4=CF =D0=C5=D2=C5=C2=CF=D2, =CE=CF =DA=C1=D7=C9=D3=C9=CD= =CF=D3=D4=C9 =D0=D2=C9=C8=CF=C4=C9=D4=D3=D1 =D0=D2=CF=D7=C5=D2=D1=D4=D8. --owRCMvbHJBIqpgHE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFG5szlfBKgtDjnu0YRAlLFAJ9RzDVM3sS1sb9F/BG8iEKIBcAKOgCgt5BU Z3sthEW56tIA6dV/T3l4BzQ= =sO1U -----END PGP SIGNATURE----- --owRCMvbHJBIqpgHE--