[Lunar-bugs] [bug] special characters in files of guile package

lunar-bugs at lunar-linux.org lunar-bugs at lunar-linux.org
Fri Apr 15 07:28:32 UTC 2005


 Project:      lunar-linux
 ID:           
 Version:      <none>
 Component:    theedge (core tools)
 Category:     bug reports
 Priority:     normal
 Assigned to:  sofar
 Reported by:  lurch
 Updated by:   sofar
-Status:       active
+Status:       fixed

I added double quotes around the echo, which prevents expansion as well.

sofar



Previous comments:
------------------------------------------------------------------------

Sat, 04/09/2005 - 17:48 : lurch

System:
-------
theedge: 20050409
moonbase: 20050409.15
guile: 1.6.7

Problem:
--------
when trying to lin guile, an error occurred while creating the install
cache tarball (after the compilation/installation):

...
Creating /var/cache/lunar/guile-1.6.7-i686-pc-linux-gnu.tar.bz2
tar: /usr/share/guile/1.6/ice-9/and-let*.scm
/usr/share/guile/1.6/ice-9/and-let-star.scm: Cannot stat: No such file
or directory
tar: Error exit delayed from previous errors

The problem is the * in the filename "and-let*.scm". It gets expanded
along the way inside the coretools to "and-let*.scm and-let-star.scm".



Suggested fix:
-------------
Add a "set -f" / "set +f" pair in the exists() function in
/var/lib/lunar/functions/misc.lunar to prevent the expansion of
wildchars in variables:

exists() { 
  debug_msg "exists ($@)"
  set -f
  while read ITEM ; do
    if [ -e "$ITEM" ] ; then
      echo $ITEM
    fi
  done
  set +f
}


Note:
-----
There's still some problems with these filenames (eg "lvu md5sums
guile" has duplicate entries)



-- 
View: http://lunar-linux.org/?q=node/view/795
Edit: http://lunar-linux.org/?q=project/comments/add/795




More information about the Lunar-bugs mailing list