* Alexey I. Froloff <ra...@altlinux.org> [03.02.2010 09:10]: > On Wed, Feb 03, 2010 at 08:59:04AM +0100, Bastian Bittorf wrote: > > > + find /usr/lib/opkg/info -name '*.conffiles' | xargs -r cat >> "$file" > > seems complicated to me, why not: > > cat /usr/lib/opkg/info/*.conffiles >>"$file" > There's still an opportunity that none of *.conffiles exists.
hmm, then this: local pattern="/usr/lib/opkg/info/*.conffiles" cat $pattern >/dev/null 2>&1 && cat $pattern >>"$file" this avoids forking and only uses simple commands. personally i try to avoid unnecessary usage of "complicated" commands to leave the way open for busybox minimal builts > You may call me "paranoid" ;-) no, it's ok 8-) bye, Bastian
signature.asc
Description: Digital signature
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel