Opened 17 years ago
Closed 16 years ago
#1211 closed defect (fixed)
VBox.sh is a bit dumb about $0 => fixed in the next version
| Reported by: | Ananth Shrinivas | Owned by: | |
|---|---|---|---|
| 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 (2)
comment:1 by , 16 years ago
| Host type: | other → Linux |
|---|
comment:2 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
| Summary: | VBox.sh is a bit dumb about $0 → VBox.sh is a bit dumb about $0 => fixed in the next version |
Note:
See TracTickets
for help on using tickets.


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.