Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
From: Thorsten Glaser
Subject: compiling-update
Date: 26 Jan 2005, 21:36:40
CBFalconer dixit:
>>>>>> if gcc dummy.c > /dev/null 2>&1 && [ -r "$A_OUT" ] && [ x"`./"$A_OUT" 2> /dev/null`" = x"" ]; then
>I thought it might be escaping a quote mark.
Due to some people still not getting that $(...) is to
be used over the less portable `...` that can happen ;)
Also an interesting read on the ` character:
http://www.cl.cam.ac.uk/~mgk25/ucs/apostrophe.html
if gcc dummy.c >/dev/null 2>&1 && [ -r "$A_OUT" ] \
&& [ x"$(./"$A_OUT" 2>/dev/null)" = x"^C" ]; then
bye,
//mirabile
PS: I prefer the following ;) but that's not too portable
since it requires mksh:
if gcc dummy.c >/dev/null 2>&1 && [[ -r $A_OUT ]] \
&& [[ $(./"$A_OUT" 2>/dev/null) = ^C ]]; then
Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.
Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.
This page was created by Crystal 0.999 (Linux 2.4.27/i686).