From: Steven P. <n9...@n9...> - 2004-03-15 19:16:47
|
On Mar 15, 2004, at 8:14 AM, Tom Pollard wrote: > In any case, I've attached a shell script that could be used to > replace the current BitPim python startup script. It uses a small > shell function to extract the parent directory name from a filepath > because the 'dirname' shell utility (like Python) is only there in > MacOS X if the user installs the optional BSD package. Otherwise, it's > just about line-for-line equivalent with the python version. I'm not interested in removing the BSD subsystem from my computer to test, but I see you state that `dirname` is not available unless you install the BSD subsystem. You are using `sed`, however, so that one *is* installed? Given this kind of thinking, it's probably somewhat arbitrary what commands Apple puts on your system as a CORE package versus the BSD package, because I would land `sed` as a part of the BSD subsystem as well, but it apparently is not. This makes it hard to be foolproof for future OS revisions as well if you write a shell script that depends on certain commands being there (albeit minimal in this case. |