From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1129 Path: news.gmane.org!not-for-mail From: Charlie Brady Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: problems with QMAILQUEUE and reading stdin Date: Mon, 29 May 2006 09:59:39 -0400 (EDT) Message-ID: References: <20060529015814.GA15937@run.galis.org> <1148880181.19941.3.camel@avirat> <1148905142.19941.57.camel@avirat> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1148911216 947 80.91.229.2 (29 May 2006 14:00:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 May 2006 14:00:16 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-1365-gcsg-supervision=m.gmane.org@list.skarnet.org Mon May 29 16:00:12 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1FkiHj-0004O9-TA for gcsg-supervision@gmane.org; Mon, 29 May 2006 15:59:55 +0200 Original-Received: (qmail 18471 invoked by uid 76); 29 May 2006 14:00:17 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 18465 invoked from network); 29 May 2006 14:00:17 -0000 X-X-Sender: charlieb@e-smith.charlieb.ott.istop.com Original-To: B S Srinidhi In-Reply-To: <1148905142.19941.57.camel@avirat> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1129 Archived-At: On Mon, 29 May 2006, B S Srinidhi wrote: > On Mon, 2006-05-29 at 08:11 -0400, Charlie Brady wrote: >> Why run cat unnecessarily (and depend on /dev/stdin which only sometimes >> exists)? >> >> Try: >> >> tmp=$pq/$(/usr/pkg/bin/safecat "$pq/tmp" "$pq") > > hmm... Yeah you are right. :) But is the above thing portable? I mean, > would this work with shells other than BASH? It's portable, but not portable to every legacy shell. I understand that $() is a POSIX standard. This doc (entitled 'The POSIX standard'): http://www.cems.uwe.ac.uk/~srking/asa/posix/Notes.pdf says: The backtick construction is deprecated in favour of $(). However the. Bourne shell only supports backticks. ...