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 nome...@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata
signature.asc
Description: This is a digitally signed message part