login
Header Space

 
 

Re: [PATCH] new test from the submodule chapter of the user manual

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: Joel Becker <Joel.Becker@...>, Junio C Hamano <gitster@...>, <git@...>, J. Bruce Fields <bfields@...>
Date: Thursday, September 20, 2007 - 5:46 pm

On Thu, Sep 20, 2007 at 07:47:32PM +0100, Johannes Schindelin <Johannes.Sch=
indelin@gmx.de> wrote:
=20

i know i asked this on irc, but i still a bit confused. the target would
be to jump out from the loop and return 'false' if any of the items
fails

if i understand correctly then this is what Dscho proposes:

$ for i in a b; do echo $i && false || break; done
a
$ echo $?
0

this jumps out from the loop but does not return false

here is my version:

$ for i in a b; do echo $i && false; done
a
b

$ echo $?
1

this one detects the error but does not jump out from the loop. none of
them is perfect, but at least my version fails as long as the last cycle
fails (which is not problem as i think in most cases all or none of the
cycles will fail)

anyway, if you really want, i can change it, but i think it is not the
right thing to do

- VMiklos
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[rfc] git submodules howto, Miklos Vajna, (Tue Sep 18, 6:55 am)
Re: [rfc] git submodules howto, Uwe , (Mon Sep 24, 3:11 am)
Re: [rfc] git submodules howto, Miklos Vajna, (Mon Sep 24, 4:30 am)
Re: [rfc] git submodules howto, J. Bruce Fields, (Tue Sep 18, 9:29 am)
Re: [rfc] git submodules howto, Miklos Vajna, (Tue Sep 18, 11:47 am)
Re: [rfc] git submodules howto, J. Bruce Fields, (Tue Sep 18, 11:55 am)
Re: [rfc] git submodules howto, Miklos Vajna, (Tue Sep 18, 12:11 pm)
Re: [rfc] git submodules howto, Michael Smith, (Tue Sep 18, 2:12 pm)
[PATCH] User Manual: add a chapter for submodules, Miklos Vajna, (Wed Sep 19, 1:42 pm)
Re: [PATCH] User Manual: add a chapter for submodules, Sven Verdoolaege, (Wed Sep 19, 5:00 pm)
Re: [PATCH] User Manual: add a chapter for submodules, Junio C Hamano, (Wed Sep 19, 3:44 pm)
[PATCH] User Manual: add a chapter for submodules, Miklos Vajna, (Wed Sep 19, 8:34 pm)
Re: [PATCH] User Manual: add a chapter for submodules, Junio C Hamano, (Thu Sep 20, 12:15 am)
Re: [PATCH] User Manual: add a chapter for submodules, Miklos Vajna, (Thu Sep 20, 6:02 pm)
Re: [PATCH] User Manual: add a chapter for submodules, Johannes Schindelin, (Thu Sep 20, 6:34 am)
Re: [PATCH] new test from the submodule chapter of the user ..., Johannes Schindelin, (Thu Sep 20, 2:47 pm)
Re: [PATCH] new test from the submodule chapter of the user ..., Miklos Vajna, (Thu Sep 20, 5:46 pm)
[PATCH] User Manual: add a chapter for submodules, Miklos Vajna, (Wed Sep 19, 8:01 pm)
Re: [PATCH] User Manual: add a chapter for submodules, J. Bruce Fields, (Wed Sep 19, 4:30 pm)
Re: [rfc] git submodules howto, Michael Smith, (Tue Sep 18, 8:10 am)
Re: [rfc] git submodules howto, Johannes Schindelin, (Tue Sep 18, 8:03 am)
speck-geostationary