[hafqa] [hafqa] [Bug 2114] New: run-standalone.sh expands parameters incorrectly.
From: bugzilla-daemon at lists.maemo.org bugzilla-daemon at lists.maemo.orgDate: Sat Oct 13 12:31:31 EEST 2007
- Previous message: [hafqa] [Bug 2095] 3rd party software (VideoCenter) Can Brick the n800
- Next message: [hafqa] [Bug 2114] run-standalone.sh expands parameters incorrectly.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
https://bugs.maemo.org/show_bug.cgi?id=2114 Summary: run-standalone.sh expands parameters incorrectly. Product: System software Version: 3.2 Platform: All OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: Medium Component: general AssignedTo: carlos at maemo.org ReportedBy: czr at iki.fi QAContact: hafqa at maemo.org /usr/bin/run-standalone.sh (same script in both SDK and device) expands the command line parameters without preserving paramater boundaries, which leads to problems when running programs that have parameters which contain spaces in the. Example (runniable on both): run-standalone.sh dbus-send --print-reply --type=method_call --dest=com.nokia.statusbar /com/nokia/statusbar com.nokia.statusbar.system_note_dialog string:'Hello world' int32:2 dbus-send: Data item "world" is badly formed EXPECTED OUTCOME: A dialog that opens via D-Bus from the statusbar component, containing "information"-icon and test "Hello World". ACTUAL OUTCOME: dbus-send sees string:Hello and World as two separate parameters due to incorrect quoting in run-standalone.sh and hence fails to run. STEPS TO REPRODUCE THE PROBLEM: Repeat the example above. OTHER COMMENTS: The fix is _trivial_: Instead of launching the program with $* , use "$@" as the last line in run-standalone.sh (applies to both SDK and N800, probably earlier/later versions as well). After this three-character fix, parameter boundaries are preserved through run-standalone.sh. -- Configure bugmail: https://bugs.maemo.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
- Previous message: [hafqa] [Bug 2095] 3rd party software (VideoCenter) Can Brick the n800
- Next message: [hafqa] [Bug 2114] run-standalone.sh expands parameters incorrectly.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]