tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ Question on awk

How pass more than 10 parameters on cmd line? ▻

How to "set" current arguments preserving whitespace?

In article <FE5F51.E6y@DrB.Insel.DE>,
Heiner Marxen <heiner@DrB.Insel.DE> wrote:
>No, this is a feature of the `eval' builtin: when called with multiple
>words, it concatenates them with blanks.  To preserve the spaces try:

Doh!  You're right: my mistake was in typing `echo $1' to see the
results, rather than `echo "$1"'.

Tim.
--
Tim Goodwin   | "You don't need to do drugs in order to
University of | think that the government's policies are
Leicester, UK | stupid and dangerous." -- David Bancroft

Original headers:

From: tjg@ltpcg.star.le.ac.uk (Tim J Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: How to "set" current arguments preserving whitespace?
Date: 1 Jul 1999 10:57:05 +0100
Organization: University of Leicester, UK
Message-ID: <7lfe1h$4nj$1@ltpcg.star.le.ac.uk>
References: <37767C29.4FDA0F13@odn.de> <7l7k3a$qbk$1@ltpcg.star.le.ac.uk>
  <FE5F51.E6y@DrB.Insel.DE>

△ comp.unix.shell △

◅ Question on awk

How pass more than 10 parameters on cmd line? ▻