[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Merging three direcories in postinst



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.

Ian.


Reply to: