Ticket #1211 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago 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:, $0, Unknown application
Cc: Guest type: other
Host type: Linux


OS Release:

$ uname -a
SunOS knuth 5.11 snv_81 i86pc i386 i86pc


Running VirtualBox as:

$ /usr/bin/VirtualBox 
$ VirtualBox

works fine. But

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

Fix: is the culprit. Use basename $0 instead of the literal $0 value


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

 APP=`which $0`
+APP=`basename $APP`
 case "$APP" in

Change History

comment:1 Changed 10 years ago by frank

  • Host type changed from other to Linux

comment:2 Changed 10 years ago by michael

  • Status changed from new to closed
  • Resolution set to fixed
  • Summary changed from is a bit dumb about $0 to 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.
ContactPrivacy policyTerms of Use