![]() |
|
Register | FAQ | The Twelve Commandments | Members List | Calendar | Arcade | Find the Best VPN | Today's Posts | Search |
General Linux Support For questions regarding use of LimeWire or WireShare or related questions on the Linux operating system. This includes installation questions and answers. (Check the Stickies marked in Red at top of this section.) |
![]() |
| LinkBack | Thread Tools | Display Modes |
| |||
![]() I just tried to install LimeWire 3.4.4 on my Red Hat Linux 9.0.93 machine, and noticed a few bugs in the installer shell script. I tried to register for an account on LimeWire.org to report them, but that also was broken, so I'm posting them here while the issues are fresh in my mind. 1. test logic Some places in the installer, tests are done to see whether variables are set, such as the test at line 326: if [ ! \( -z $AVAIL_SPACE -o -z $NEEDED_SPACE \) ] a) this logic can be greatly simplified ! ( !X OR !Y) = X AND Y => if [ -n $AVAIL_SPACE -a -n $NEEDED_SPACE ] b) the variables should be enclosed in double quotes in case the variable is empty => if [ -n "$AVAIL_SPACE" -a -n "$NEEDED_SPACE" ] 2. redundant defaults Some places, variables are given default values, but that section of code would not be evaluated if the value was empty anyway. In this case, there is no need for the default value. For instance, at line 327: if [ ${AVAIL_SPACE:-0} -lt ${NEEDED_SPACE:-0} ]; then => if [ ${AVAIL_SPACE} -lt ${NEEDED_SPACE} ]; then 3. POSIX behavior of tail command The installer sets POSIXLY_CORRECT to ensure the expected output of df, yet ignores the other side effects of doing so, for instance, this breaks the way "tail" is used, as POSIX expects "tail -n <lines>", rather than "tail -<lines>". With the version of GNU tail I am using, this is a fatal error. The easiest and probably most correct way of fixing this is to modify commands like tail to also use POSIX syntax. For instance, at line 379: AVAIL_SPACE=`$DF_CMD . 2>/dev/null | awk "{print \\\$$DF_AVAIL_COL}" | tail -1 ` => AVAIL_SPACE=`$DF_CMD . 2>/dev/null | awk "{print \\\$$DF_AVAIL_COL}" | tail -n 1 ` I hope someone can make the required changes as soon as possible. |
![]() |
| |
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bugs | crawler_nt | LimeWire Beta Archives | 1 | September 27th, 2005 03:11 PM |
bugs | raymondj. | Open Discussion topics | 1 | January 23rd, 2005 03:26 AM |
Bugs in 2.8.5 | Norm | LimeWire Beta Archives | 2 | January 6th, 2003 02:56 PM |
Report Bugs in 1.3* & Known Bugs/solutions | KayaMan | Support: Bugs | 11 | November 24th, 2002 10:48 AM |
Bugs! | Unregistered | User Experience | 0 | October 31st, 2001 09:22 PM |