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
| Herbert Poetzl | Re: [ckrm-tech] [PATCH 0/2] resource control file system - aka containers on top o... |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Mark Lord | Re: 2.6.25-rc7: Ugh. |
| Cornelia Huck | Re: 2.6.25-rc3-mm1 |
git: | |
| Lea Wiemann | [PATCH 0/3] Git::Repo API and gitweb caching |
| Randal L. Schwartz | Re: pull into dirty working tree |
| Johannes Schindelin | Re: [PATCH] better git-submodule status output |
| Johannes Schindelin | Re: [PATCH] Add a new lstat and fstat implementation based on Win32 API |
| Richard Stallman | Re: Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| thacrazze | Multiboot Windows XP + OpenBSD doesnt work |
| askthelist | Packets Per Second Limit? |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Stephen Pierce | SLS |
| drew | Re: Linux-0.12 |
| Sunando Sen | Re: [Q] "Cannot execute /bin/*sh: Permission denied" prevents login |
