httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: svn commit: r126224 - /httpd/httpd/trunk/support/check_forensic
Date Thu, 03 Feb 2005 15:44:47 GMT
On Thu, 3 Feb 2005 07:32:32 -0800, Justin Erenkrantz
<justin@erenkrantz.com> 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

Mime
View raw message