Package: emacsen-common Version: 1.4.17 Severity: wishlist File: /usr/share/doc/emacsen-common/debian-emacs-policy.gz
The sample remove script has [ -d ${elc_dir} -a `ls -la ${elc_dir}|wc -l` -gt 3 ] && rmdir ${elc_dir} But I think asking for more than 3 lines from "ls" before removing is the wrong way around. I presume the test is to remove the directory if empty, and I think that would be <= 3 lines from ls. Perhaps rmdir --ignore-fail-on-non-empty would be easier, as per mit-scheme's /usr/lib/emacsen-common/packages/remove/mit-scheme. I guess that's a gnu coreutils extension. I suppose "rmdir $dir || true" would have much the same effect (and still be safe against the "set -e"). -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i586) Kernel: Linux 2.6.20-1-486 Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/dash Versions of packages emacsen-common depends on: ii bsdmainutils 6.1.6 collection of more utilities from emacsen-common recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]