Intermittent "cannot execute [Exec format error]" (using ksh)

Every so often, I'll be typing along at the shell and I'll get something like:


$ ls -lt | head
head: head: cannot execute \[Exec format error\]

This only happens to me on macos (not linux, not cygwin, not Solaris, ...). Apparently others have been so afflicted (see http://forums.macosxhints.com/showthread.php?t=99566) and have found a simple way to reproduce the problem:

$ touch foo; find . -name foo | while read f; do test -f bar || mv $f bar; done

This pipeline works fine under bash.

Thoughts?


Thanks,
Jeff

Posted on Aug 15, 2010 10:41 AM

Reply
2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Intermittent "cannot execute [Exec format error]" (using ksh)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.