It happened again. and I've just realized it's simply what you had warned about: since it was an --amend and I didn't change anything in the message there was no change to the ls -l output, hence E did nothing when I Put.
On Fri, Apr 27, 2012 at 12:20 AM, Mathieu Lonjaret <mathieu.lonja...@gmail.com> wrote: > I've just retried on the machine where I had the problem and it now > just works. No need even for awd indeed. > I'll try and reproduce the behavior, but I just don't see what I may > have done different the previous times... > > thanks, > Mathieu > > On Thu, Apr 26, 2012 at 5:32 AM, Russ Cox <r...@swtch.com> wrote: >> On Wed, Apr 25, 2012 at 5:35 PM, Mathieu Lonjaret >> <mathieu.lonja...@gmail.com> wrote: >>> So, are you saying E just works out of the box for you as the $EDITOR >>> for git/hg? >> >> Yes. Note that E waits for the file to change by running >> ls -l on the file in a loop. If for some reason doing the Put >> does not change the ls -l output (date+size, primarily) then >> E will not exit. If you are having trouble I would suggest >> putting some echo statements in the script or just doing >> 'set -e' at the top so that it echoes each statement as it >> executes (including the all-important comparison). >> >> I cannot imagine why using awd would change the behavior >> of the E script. >> >> Russ