From owner-freebsd-questions@FreeBSD.ORG Thu Jul 31 18:42:08 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 5E2BC37B401 for ; Thu, 31 Jul 2003 18:42:08 -0700 (PDT) Received: from spam2.snu.ac.kr (spam2.snu.ac.kr [147.46.10.68]) by mx1.FreeBSD.org (Postfix) with SMTP id 2021443F93 for ; Thu, 31 Jul 2003 18:42:07 -0700 (PDT) (envelope-from lahaye@users.sourceforge.net) Received: (snipe 32061 invoked by alias); 1 Aug 2003 01:58:45 -0000 Received: from lahaye@users.sourceforge.net with Spamsniper2.0 (Processed in 0.050730 secs); Received: from unknown (HELO sis1.snu.ac.kr) (147.46.10.36) by 0 with SMTP; 1 Aug 2003 01:58:45 -0000 X-RCPTTO: freebsd-questions@freebsd.org, Received: from users.sourceforge.net ([147.46.44.183]) by sis1.snu.ac.kr (8.12.9/8.12.9) with ESMTP id h711fxmx127830 for ; Fri, 1 Aug 2003 10:42:00 +0900 Message-ID: <3F29C589.4030009@users.sourceforge.net> Date: Fri, 01 Aug 2003 10:42:33 +0900 From: Rob Lahaye Organization: Seoul National University - South Korea User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030726 X-Accept-Language: en-us, ko-kr MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: 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 01:42:08 -0000 Hello, I've been trying to include the quote (") characters and spaces into a tcsh script variable; for already two days I've been trying various ways doing this to no avail! I'm about to think that it is impossible. For example: ------------------------ #!/bin/tcsh set flag="-f "t "" ------------------------ This obviously doesn't work because of too many quotes involved; but what does work to achieve this? There are two problems here: 1) flag should contain the two internal quotes of "t " 2) the "t " contains two spaces. When I use set flag='-f "t "' the two spaces are automagically (?) reduced to only one space!! The latter seems to be a general problem: set flag="f " wil result in flag containing only "f ". Any solutions for this problem with quotes and spaces in tcsh script? Or is tcsh not suitable for this kind of things? Thanks, Rob.