andymatuschak/TestMigration — Issue #76: Updates fail with "command not found"
Author: andymatuschak
Created: 2011-10-23 16:43:19+00:00
State: open

***Mislav (mislav)** [reported (on Launchpad)](https://bugs.launchpad.net/sparkle/+bug/564140) on' 2010-04-15:*

At one point, most applications using Sparkle updater on my machine
started being unable to update. The symptoms were always the same: the
update would download, start extracting, but then the application would
crash and Mac Crash reporter will display a notification of that. Each
time this happened I jumped to the Console and saw that the crashes have
one thing in common: they are all caused by "command not found" when
invoking "sh". Example log: http://cl.ly/Mhc

Here the command which couldn't be found is "ditto", but in some other
cases it's "tar". This would suggest that something is broken with my
PATH, but when I execute it myself everything is ok:

$ sh -c 'which ditto'
/usr/bin/ditto

I've experienced this in Skitch, MailPlane, Things.app, and various
others. I've searched on Google and here, but nobody seems to have a
similar issue. I'm not comfortable enough with Objective-C yet to debug
this, but if you could tell me what to look up on my system I will try
to see did any of my system configuration produce this edge case.