From owner-freebsd-hackers Tue Oct 2 5:15:15 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from newsguy.com (smtp.newsguy.com [209.155.56.71]) by hub.freebsd.org (Postfix) with ESMTP id A129937B403 for ; Tue, 2 Oct 2001 05:15:05 -0700 (PDT) Received: from newsguy.com (ppp232-bsace7002.telebrasilia.net.br [200.181.81.232]) by newsguy.com (8.9.1a/8.9.1) with ESMTP id FAA91468; Tue, 2 Oct 2001 05:14:01 -0700 (PDT) Message-ID: <3BB9B0A3.2C5F3ACC@newsguy.com> Date: Tue, 02 Oct 2001 09:18:43 -0300 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.77 [en] (Win98; U) X-Accept-Language: en,pt-BR,pt,en-GB,en-US,ja MIME-Version: 1.0 To: Stijn Hoop Cc: "Eugene L. Vorokov" , freebsd-hackers@freebsd.org Subject: Re: how to make 'for' understand two words as a single argument References: <200110011039.f91AdOD88292@bugz.infotecs.ru> <3BB855BB.D10C5030@newsguy.com> <20011001135635.A39309@pcwin002.win.tue.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Stijn Hoop wrote: > > > Any way using `` won't work. for i in a "b c" d works, for instance, but > > there is not way that I know of that you can control the output this way > > using ``. > > Yes there is: set IFS to only contain a newline beforehand. That's my local > hack, your way is probably better :) But if you do that, you'll get a single argument back, instead of a number of arguments, some of which have space in the middle, or not? -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@the.secret.bsdconspiracy.net wow regex humor... I'm a geek To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message