I sent Matt this patch, which solves the problem for me:
To complement the character class matched by a bracket expression,
the exclamation mark seems more widely accepted than circumflex.
Bash accepts either, but dash, ksh, and The Open Group shell command
language spec accept only exclamation mark.
Dash is installed as /bin/sh on recent Ubuntu systems, and the fact that it
doesn't accept circumflex to complement bracket expressions causes errors
like this:
Unpacking linux-2.6.20.tar.bz2
mv: cannot move `linux-2.6.20/..' to `../..': Device or resource busy
Problem reports:
https://launchpad.net/bugs/69804
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=386694
http://www.archivum.info/linux.debian.bugs.dist/2006-09/msg02777.html
References:
bash: http://www.gnu.org/software/bash/manual/bashref.html#SEC34 (sec
3.5.8.1)
ksh: http://www.cs.princeton.edu/~jlk/kornshell/doc/man93.html#File Name
Generation
TOG:
http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_13
(sec 2.13.1)
--- ketchup.orig 2006-05-01 14:09:00.000000000 -0600
+++ ketchup 2007-04-20 14:15:36.000000000 -0600
@@ -433,7 +433,7 @@
error("Unpacking failed: ", err)
sys.exit(-1)
- err = os.system("mv linux*/* linux*/.[^.]* ..; rmdir linux*")
+ err = os.system("mv linux*/* linux*/.[!.]* ..; rmdir linux*")
if err:
error("Unpacking failed: ", err)
sys.exit(-1)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]