From owner-freebsd-questions@FreeBSD.ORG Thu Jul 31 19:15:31 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48FF237B404 for ; Thu, 31 Jul 2003 19:15:30 -0700 (PDT) Received: from pop018.verizon.net (pop018pub.verizon.net [206.46.170.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E36F43FCB for ; Thu, 31 Jul 2003 19:15:29 -0700 (PDT) (envelope-from cswiger@mac.com) Received: from mac.com ([151.205.189.55]) by pop018.verizon.net (InterMail vM.5.01.05.33 201-253-122-126-133-20030313) with ESMTP id <20030801021528.NVVO11703.pop018.verizon.net@mac.com>; Thu, 31 Jul 2003 21:15:28 -0500 Message-ID: <3F29CD39.9080505@mac.com> Date: Thu, 31 Jul 2003 22:15:21 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Rob Lahaye References: <3F29C589.4030009@users.sourceforge.net> In-Reply-To: <3F29C589.4030009@users.sourceforge.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at pop018.verizon.net from [151.205.189.55] at Thu, 31 Jul 2003 21:15:28 -0500 cc: freebsd-questions@freebsd.org Subject: Re: tcsh script: quote and spaces problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2003 02:15:31 -0000 Rob Lahaye wrote: [ ... ] > Any solutions for this problem with quotes and spaces in tcsh script? > Or is tcsh not suitable for this kind of things? Ugh, the latter. :-) /bin/sh handles nested quoting right, but crunches the space together: % foo="-f \"t \"" % echo $foo -f "t " % foo='-f "t "' % echo $foo -f "t " ...however, you might be able to muck with $IFS and get better results. Also, ZSH seems to do exactly what you expected: 64-sec% foo="-f \"t \"" 65-sec% echo $foo -f "t " 67-sec% foo='-f "t "' 68-sec% echo $foo -f "t " -- -Chuck