Talk:Java/How To use Java with Firefox on 64-bit openSuSE 10.3

From openSUSE

Note: don't use cat for this;

  • Use a text editor like vim. When I used cat the if condition always exited because expansion on all the variables and the back-ticked text occurred and was actually substituted into the file like this:
    if [ "daniel   24611     1  0 12:47 ?        00:00:00 /bin/sh /usr/bin/firefox" != "" ]
    • Don't be afraid to edit the daylights out of a page. As the wiki preserves old versions which are easily retrievable, just editing out the problem area is preferred. Otherwise, pages will fill up with meta discussion comments. --Waveclaw 09:34, 29 May 2008 (UTC)
    • The shell "here document" (what you called the cat<< line) should work in ksh 93, tcsh > 6.10 and bash > 3.0. I have tested all of these. If you are enclosing the here document in quote it would behave as you described:
      cat <<"~/bin/firefox"
      Then that line would expand the variables involved. I do not know which shell you are using or what environment settings you are using. So I have just removed the offending sections. --Waveclaw 09:34, 29 May 2008 (UTC)