From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Message-ID: <480F518C.5040804@altlinux.ru> Date: Wed, 23 Apr 2008 19:11:08 +0400 From: Alexey Gladkov User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.8.1.12) Gecko/20080304 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: ALT Linux Team development discussions References: <480F3F52.3050804@altlinux.ru> <20080423141258.GI7616@solemn.turbinal> <480F4910.5050204@altlinux.ru> <20080423144602.GJ7616@solemn.turbinal> In-Reply-To: <20080423144602.GJ7616@solemn.turbinal> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [devel] [git pull] sisyphus_check changes X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.10b3 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: Wed, 23 Apr 2008 15:11:17 -0000 Archived-At: List-Archive: List-Post: Alexey Tourbin wrote: > 'if' =D1=87=D0=B0=D1=81=D1=82=D0=B8=D1=87=D0=BD=D0=BE =D0=BE=D1=82=D1=80= =D1=83=D0=B1=D0=B0=D0=B5=D1=82 =D1=80=D0=B5=D0=B6=D0=B8=D0=BC -e. =D0=AD=D1=82=D0=BE =D0=BE=D1=82=D0=BD=D0=BE=D1=81=D0=B8=D1=82=D1=81=D1=8F= =D0=BA =D0=BB=D1=8E=D0=B1=D1=8B=D0=BC =D0=BA=D0=BE=D0=BD=D1=81=D1=82=D1=80= =D1=83=D0=BA=D1=86=D0=B8=D1=8F=D0=BC, =D0=B0 =D0=BD=D0=B5 =D1=82=D0=BE=D0= =BB=D1=8C=D0=BA=D0=BE =D0=BA 'if': $ cat ./z.sh #!/bin/sh -e ( false; echo a; ) && echo b { false; echo a; } && echo b $ ./z.sh a b a b =D0=A3=D1=87=D0=B8=D1=82=D1=8B=D0=B2=D0=B0=D0=B5=D1=82=D1=81=D1=8F =D1=82= =D0=BE=D0=BB=D1=8C=D0=BA=D0=BE =D0=BA=D0=BE=D0=B4 =D0=B2=D0=BE=D0=B7=D0=B2= =D1=80=D0=B0=D1=82=D0=B0 =D0=BD=D0=B0 =D0=B2=D0=B5=D1=80=D1=85=D0=BD=D0=B5= =D0=BC =D1=83=D1=80=D0=BE=D0=B2=D0=BD=D0=B5. > $ sh -ec 'if (echo $-); then echo $-; fi' > ehBc > ehBc > $ sh -ec 'if (false; echo a); then echo b; fi' > a > b > $ =D0=B2 =D1=81=D0=BB=D1=83=D1=87=D0=B0=D0=B5 sisyphus_check =D0=BF=D1=80=D0= =BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0 =D0=B8=D0=B4=D1=91=D1=82 =D0=BF=D0=BE =D0= =BA=D0=BE=D0=B4=D1=83 =D0=B7=D0=B0=D0=B2=D0=B5=D1=80=D1=88=D0=B5=D0=BD=D0= =B8=D1=8F =D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D0=B8: $ cat ./z.sh #!/bin/sh -e zzz() { echo a; return 1; } if (zzz); then echo b; fi $ ./z.sh a --=20 Rgrds, legion