On Thu, Jan 6, 2011 at 11:32 AM, Chris Packham <judge.packham@xxxxxxxxx> wrote: > Hi All, > > I just noticed something odd with "git submodule foreach". I was > running a script to create a backup of each submodule on a server I > have ssh access to. I was surprised to find that git submodule foreach > stopped silently after the first submodule. > > A little debugging and I find that > > git submodule foreach 'ssh localhost "ls /"' - stops silently after > the first module (note that the command does produce the expected > listing and there is no error about the command failing). > > git submodule foreach 'echo foo' - works as expected > > Any thoughts as to whats going on? > > --- > git version 1.7.3.2 > Actually this might be a ssh/bash bug (feature?). There is different behaviour between find . -maxdepth 1 -type d -a ! -name '\.*' | while read; do echo $REPLY && ssh localhost ls /; done and find . -maxdepth 1 -type d -a ! -name '\.*' | while read; do echo $REPLY && ls /; done -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html