From owner-freebsd-questions@FreeBSD.ORG Thu Apr 4 12:51:21 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 15D6EE1D for ; Thu, 4 Apr 2013 12:51:21 +0000 (UTC) (envelope-from feld@feld.me) Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) by mx1.freebsd.org (Postfix) with ESMTP id DEC71E7E for ; Thu, 4 Apr 2013 12:51:20 +0000 (UTC) Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 5CE2F52B; Thu, 4 Apr 2013 08:51:20 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute4.internal (MEProxy); Thu, 04 Apr 2013 08:51:20 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=feld.me; h= content-type:to:cc:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to; s= mesmtp; bh=RkwTsVouxH+YwcvmhT1k+W67PvY=; b=Mo8+ms7K65ZlpJdwyZ+fY vMkEoQiNTuVHb95xKSWAMWtmvURZRQmBsTPEmkSawOH/rKV3nG8bQTyjGEofcGqy TyGKigKxHJFl4HuQXRoZqb08QzPTszGA6pt+Wmgg0sscSDywYqPk/iIBWZGCncRb bRY7lWX5F64McA0SpaNtUQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:to:cc:subject:references :date:mime-version:content-transfer-encoding:from:message-id :in-reply-to; s=smtpout; bh=RkwTsVouxH+YwcvmhT1k+W67PvY=; b=saDu vJH1D7Tcf+3xuqWInTb7/z1nvLY1brKTdaHmUiYLqk8sA8+DJ2Nyo4wURCUEU2Vb MSN1H91MudNFRuwpa2rkdN9jJprWXfO3vMGWqA/vF74exqFgzqm14oCiFyw43JYw iUpni+o0kwWcpiAnTryXo58PeZNl6/k/oOnACZQ= X-Sasl-enc: 0XbB7vPgwknlZvwxQyUAihnbayxo/KGHyF6u07FA64r9 1365079879 Received: from tech304.office.supranet.net (unknown [66.170.8.18]) by mail.messagingengine.com (Postfix) with ESMTPA id B2A50200048; Thu, 4 Apr 2013 08:51:19 -0400 (EDT) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: Quartz Subject: Re: OT: posix sh problem References: <515D764D.1040604@sneakertech.com> Date: Thu, 04 Apr 2013 07:51:19 -0500 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Mark Felder" Message-ID: In-Reply-To: <515D764D.1040604@sneakertech.com> User-Agent: Opera Mail/12.14 (FreeBSD) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Apr 2013 12:51:21 -0000 On Thu, 04 Apr 2013 07:47:09 -0500, Quartz wrote: >> I'd really like to >> have this working cleanly on FreeBSD without requiring any funky shells > > Define "funky shell". Does it have to be straight up plain sh? Can it > use csh or tcsh syntax? Does bash count as 'funky'? > Any shells not in the FreeBSD base system, basically. I don't want this script to stop working because someone somehow broke bash or zsh and nobody noticed because nobody ever uses it. > >> or using any temporary files. > > Do you mean "manually created temp files"? because some of the different > ways of doing process substitution and redirection will automatically > create temp files for you in the background and fail on an unwritable > filesystem. > Yes, I mean manually created temp files. It looks pretty ugly to > /tmp/foo and read from it a line later :)