Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 May 2001 23:33:12 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        Dima Dorfman <dima@unixfreak.org>, hackers@FreeBSD.ORG
Cc:        gad@FreeBSD.ORG
Subject:   Re: xargs(1) "replstr" patch
Message-ID:  <p05100e05b7225a189fa3@[128.113.24.47]>
In-Reply-To: <20010512010319.B3B893E0B@bazooka.unixfreak.org>
References:  <20010512010319.B3B893E0B@bazooka.unixfreak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
At 6:03 PM -0700 5/11/01, Dima Dorfman wrote:
>Comments?  Suggestions?

The one oddity I forgot to ask Dima about was in the man page.
We included an example, which in nroff source is:

>+For example, the following command will copy the list of files and
>+directories which start with an uppercase letter in the current
>+directory to
>+.Pa destdir :
>+.Pp
>+.Dl /bin/ls -1d [A-Z]* | xargs -J [] cp -rp [] destdir
>+.Pp

When I install this man page on -stable, and do a 'man xargs',
that last line is displayed to the user as:

    /bin/ls -1d [A-Z]* | xargs -J [] cp -rp /bin/ls0 0/bin/ls1

I keep meaning to test this on -current, but my freebsd-current
box is at home, and I never remember to try this when I get
home.  But at least on -stable, it seems that ANYTHING I put
after the 'cp -rp' gets translated into '/bin/ls0 0/bin/ls1'.
This seems odd to me, but then I don't really know what any
of the nroff macros are doing.    (insert weak smiley here)

-- 
Garance Alistair Drosehn            =   gad@eclipse.acs.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05100e05b7225a189fa3>