VirtualBox

Ticket #1211 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

VBox.sh is a bit dumb about $0 => fixed in the next version

Reported by: ananthshrinivas Owned by:
Priority: major Component: other
Version: VirtualBox 1.5.4 Keywords: vbox.sh, $0, Unknown application
Cc: Guest type: other
Host type: Linux

Description


OS Release:


$ uname -a
SunOS knuth 5.11 snv_81 i86pc i386 i86pc

Problem:


Running VirtualBox as:

$ /usr/bin/VirtualBox 
(or)
$ VirtualBox

works fine. But

cd /usr/bin/
./VirtualBox
Unknown application - ./VirtualBox

Fix:


VBox.sh is the culprit. Use basename $0 instead of the literal $0 value


Patch:


diff -r 38e4f524613d VBox.sh
--- a/VBox.sh   Tue Feb 19 19:28:33 2008 +0530
+++ b/VBox.sh   Tue Feb 19 19:32:53 2008 +0530
@@ -18,6 +18,7 @@ export LD_LIBRARY_PATH
 export LD_LIBRARY_PATH

 APP=`which $0`
+APP=`basename $APP`
 APP=${APP##/*/}
 case "$APP" in
   VirtualBox)

Change History

comment:1 Changed 6 years ago by frank

  • Host type changed from other to Linux

comment:2 Changed 6 years ago by michael

  • Status changed from new to closed
  • Resolution set to fixed
  • Summary changed from VBox.sh is a bit dumb about $0 to VBox.sh is a bit dumb about $0 => fixed in the next version

Actually I think that this was originally reported against a Solaris host, but it should work fine on both Linux and Solaris in the next version.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use