Am Dienstag, 25. April 2006 22:02 schrieb Marco d'Itri:
Hi!

> Yes, the caller needs a $(echo ...) to split the arguments. I will fix
> it tomorrow.

There's another problem. Have a look at the following patch:

--- hotplug.functions   2006-04-25 22:11:30.000000000 +0200
+++ hotplug.functions.new       2006-04-25 22:08:10.000000000 +0200
@@ -125,7 +125,7 @@
   local basename=${links%%[0-9]*}
   local max=-1

-  for name in $links; do
+  for name in "$@"; do
     local num=${name#$basename}
     [ "$num" ] || num=0
     [ $num -gt $max ] && max=$num


--- write_cd_rules      2006-04-23 18:25:45.000000000 +0200
+++ write_cd_rules.new  2006-04-25 22:07:58.000000000 +0200
@@ -6,7 +6,7 @@

 
##############################################################################
 find_next_available() {
-  raw_find_next_available "$(find_all_rules 'SYMLINK+=' $1)"
+  raw_find_next_available $(find_all_rules 'SYMLINK+=' $1)
 }

 write_rule() {


regards,
Jörg


Reply via email to