httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wilt, Paul" <pw...@umi.com>
Subject RE: cvs commit: apache-apr/apr/lib Makefile.in
Date Fri, 26 Mar 1999 18:21:44 GMT
Ken/Ralf:

The subshell allows you to make certain that you can properly redirect the
output.
I have used this technique with telnet to be able to redirect its output.

	(telnet machine 80) 1>junk.out 2>&1 <<EOF
	GET /which.html
	EOF

Without the subshell the telnet performs its own rediection of STDIN, STDOUT
and STDERR.

Thanks
Paul E Wilt 
Senior Software Engineer
____________________________________________________
UMI, A Bell & Howell Company     	mailto:pwilt@umi.com
http://www.umi.com		Phone: (734) 975-6021
300 North Zeeb Rd			Fax:    (734) 973-0737
Ann Arbor, MI 48106
____________________________________________________

> ----------
> From: 	Rodent of Unusual Size[SMTP:Ken.Coar@Golux.Com]
> Sent: 	Friday, March 26, 1999 10:54 AM
> To: 	new-httpd@apache.org
> Subject: 	Re: cvs commit: apache-apr/apr/lib Makefile.in
> 
> Ralf S. Engelschall wrote:
> > 
> > In article <19990325201230.5286.qmail@hyperreal.org> you wrote:
> > > coar        99/03/25 12:12:29
> > 
> > >    SYS_HW=`(uname -m) 2>/dev/null` || SYS_HW="unknown"
> > >    SYS_VER=`(uname -v) 2>/dev/null` || SYS_VER="unknown"
> > >    SYS_SW=`(uname -s) 2>/dev/null` || SYS_SW="unknown"
> > >[...]
> > >   -if test "$SYS_SW" = "AIX"; then
> > >   +if (test "$SYS_SW" = "AIX"); then
> > 
> > Just a hint: the subshell-notation with () is unusual and not necessary
> AFAIK.
> 
> I don't think it's unusual; I see it frequently.  And it doesn't
> do any harm.  Besides, the SYS_* lines were essentially copied
> from the current src/Configure, so it's not as though I'm
> introducing anything new. :-)
> -- 
> #ken    P-)}
> 
> Ken Coar                    <http://Web.Golux.Com/coar/>
> Apache Group member         <http://www.apache.org/>
> "Apache Server for Dummies" <http://Web.Golux.Com/coar/ASFD/>
> 

Mime
View raw message