On Thu, Feb 03, 2005 at 07:43:48AM -0500, Jeff Trawick wrote: > "which" is not portable... z/OS doesn't have it, and I would assume > that z/OS isn't the only reason we've been dragging around PrintPath > all this time...
Yikes. Are there really other supported Unix's that don't have which? > what about: > > temp_create_method=file > if which cut >/dev/null 2>/dev/null; then > (logic to use which goes where) > fi Did you mean: temp_create_method=file if which mktemp >/dev/null 2>/dev/null; then temp_create_method=mktemp elif which tempfile >/dev/null 2>/dev/null; then temp_create_method=tempfile fi If not, then I'm utterly confused. -- justin
