On Thu, 3 Feb 2005 07:32:32 -0800, Justin Erenkrantz <[EMAIL PROTECTED]> wrote:
> > 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 I didn't mean that, but that looks better ;) (what I meant was to use "which cut" to see if "which" works; the rest of the script already assumes that cut exists) I'm not sure if throwing away all the output satisfies Joe's concern; running login scripts seems like it could have side-effects other than output
