<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>89384</bug_id>
          
          <creation_ts>2004-09-13 00:07:51 +0000</creation_ts>
          <short_desc>can not use &quot;*&quot; symbol</short_desc>
          <delta_ts>2004-10-02 12:28:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kopete</product>
          <component>Latex Plugin</component>
          <version>unspecified</version>
          <rep_platform>Debian testing</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Marius">mariausol</reporter>
          <assigned_to name="Kopete Developers">kopete-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>268073</commentid>
    <comment_count>0</comment_count>
    <who name="Marius">mariausol</who>
    <bug_when>2004-09-13 00:07:52 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.3.0)
Installed from:    Debian testing/unstable Packages
OS:                Linux

Insteed of &quot;*&quot; I get list of files in my home directory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268080</commentid>
    <comment_count>1</comment_count>
    <who name="Till Gerken">till.gerken</who>
    <bug_when>2004-09-13 00:35:50 +0000</bug_when>
    <thetext>I consider this to be a critical bug if the shell command is not properly escaped.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268086</commentid>
    <comment_count>2</comment_count>
    <who name="Jason Keirstead">jason</who>
    <bug_when>2004-09-13 01:20:20 +0000</bug_when>
    <thetext>What part of Kopete exactly is this bug referring to?

You can type * in a chat without getting a list of files in your home direcotry, thats for sure.

In fact the only possible way I can see you&apos;d ever get a list of files in your home directory is if you typed /exec ls *, in which case it is actually correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268093</commentid>
    <comment_count>3</comment_count>
    <who name="Marius">mariausol</who>
    <bug_when>2004-09-13 02:15:40 +0000</bug_when>
    <thetext>Enable KopeTeX plugin and type $$*$$

ps: with /exec ls * I get crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>273503</commentid>
    <comment_count>4</comment_count>
    <who name="Olivier Goffart">ogoffart</who>
    <bug_when>2004-10-02 12:28:16 +0000</bug_when>
    <thetext>CVS commit by ogoffart: 


Escape bash willcards in the latex text.
So now, you can uses * in a latex expression without echoing all file in the current dirrectory.
The bug was in ex2im.  I&apos;ll probably report back the bug there also.

CCMAIL: 89384-done@bugs.kde.org

I&apos;ll backport and this will be fixed for KDE 3.1.1 


  M +20 -20    kopete_latexconvert.sh   1.3


--- kdenetwork/kopete/plugins/latex/kopete_latexconvert.sh  #1.2:1.3
@@ -51,12 +51,12 @@
            default is on for normal mode and
                           off for transparent mode
--o file    specifies output filename, 
+-o file    specifies output filename,
            default is inputfile with new extension
--f expr    specifies output format, 
+-f expr    specifies output format,
            possible examples: gif, jpg, tif......
-           all formates supported by &apos;convert&apos; should work, 
+           all formates supported by &apos;convert&apos; should work,
            default: png
--r expr    specifies desired resolution in dpi, 
-           possible examples: 100x100, 300x300, 200x150, 
+-r expr    specifies desired resolution in dpi,
+           possible examples: 100x100, 300x300, 200x150,
            default is 150x150
 -b expr    specifies the background color
@@ -77,7 +77,7 @@
                 z) trans=1
                    aa=0;;
-                a) if [ $aa -eq 0 ]; then 
-                                aa=1 
-                        else 
+                a) if [ $aa -eq 0 ]; then
+                                aa=1
+                        else
                                 aa=0
                         fi;;
@@ -86,5 +86,5 @@
                 t) color2=$OPTARG;;
                 f) format=$OPTARG;;
-      x) extra_header=$OPTARG;;                 
+      x) extra_header=$OPTARG;;
         esac
 done
@@ -106,5 +106,5 @@
         mkdir $tmpdir
 fi
-homedir=&quot;`pwd`&quot; || exit 1  
+homedir=&quot;`pwd`&quot; || exit 1
 
 #
@@ -115,7 +115,7 @@
 do
 
-eval infile=\$${OPTIND}   
+eval infile=\$${OPTIND}
 
-if [ -z $outfile ]; then        
+if [ -z $outfile ]; then
         if [ -e &quot;$infile&quot; ]; then
                 base=`basename ${infile} .tex` ;
@@ -172,6 +172,6 @@
 #       cat $infile &gt;&gt; $tmpdir/out.tex
 #else
-        echo $infile &gt;&gt; $tmpdir/out.tex
-#fi     
+        echo &quot;$infile&quot; &gt;&gt; $tmpdir/out.tex
+#fi
 
 if [ $noformula -eq 1 ]; then
@@ -204,13 +204,13 @@
 if [ $trans -eq 1 ]; then
         if [ $aa -eq 1 ]; then
-                convert +adjoin -antialias -transparent $color1 -density $resolution $tmpdir/out.eps $tmpdir/out.$format        
+                convert +adjoin -antialias -transparent $color1 -density $resolution $tmpdir/out.eps $tmpdir/out.$format
         else
-                convert +adjoin +antialias -transparent $color1 -density $resolution $tmpdir/out.eps $tmpdir/out.$format        
+                convert +adjoin +antialias -transparent $color1 -density $resolution $tmpdir/out.eps $tmpdir/out.$format
         fi
-else    
+else
         if [ $aa -eq 1 ]; then
-                convert +adjoin -antialias -density $resolution $tmpdir/out.eps $tmpdir/out.$format     
+                convert +adjoin -antialias -density $resolution $tmpdir/out.eps $tmpdir/out.$format
         else
-                convert +adjoin +antialias -density $resolution $tmpdir/out.eps $tmpdir/out.$format     
+                convert +adjoin +antialias -density $resolution $tmpdir/out.eps $tmpdir/out.$format
         fi
 fi
@@ -231,4 +231,4 @@
 #
 
-rm -rf $tmpdir 
+rm -rf $tmpdir
 exit 0


</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>