Hi,
Am Freitag, den 17.06.2011, 15:58 +0100 schrieb Ian Jackson:
> Joachim Breitner writes ("Re: Merging three direcories in postinst"):
> > BTW, this line (with "-t" after mv") ought to do the same as
> > mv $path/* /usr/lib/ghc-doc/haddock/
> > without failing when $path is empty. Is there a nicer way than find and
> > xargs?
>
> Use bash and set -o nullglob, perhaps. You'd have to faff about a bit
> because mv won't like an empty argument list.
Yes, that’s why xargs’s "-r" is handy. And depending on some bash
options doesn’t sound nicer than find and xargs, unless one is trying to
win a low-pid-number-contest :-)
Greetings,
Joachim
--
Joachim "nomeata" Breitner
Debian Developer
nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata
Attachment:
signature.asc
Description: This is a digitally signed message part