This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 184507 - startup script "nbexec" on solaris has runtime problem
Summary: startup script "nbexec" on solaris has runtime problem
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P2 normal (vote)
Assignee: Victor Vasilyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-20 01:28 UTC by Chihin Ko
Modified: 2010-04-20 09:53 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chihin Ko 2010-04-20 01:28:13 UTC
sh script on solaris .../netbeans/platform/lib/nbexec has problem since 
netbeans-20100414-1408 build

  if [ ! -z $DESKTOP_STARTUP_ID ] ; then

is causing runtime error :

/set/dbx/src/trunk/gdb-pia/import/ide/netbeans-20100414-1408/netbeans/platform/lib/nbexec: test: argument expected 

Here is the fix

if [ ! -z "$DESKTOP_STARTUP_ID" ] ; then
Comment 1 Peter Pis 2010-04-20 06:52:04 UTC
Please evaluate.
Comment 2 Alexei Mokeev 2010-04-20 07:15:05 UTC
Regression from http://netbeans.org/bugzilla/show_bug.cgi?id=76970 fix.

The question: is it a Beta stopper ? 

Will depend on test results from Michael.
Comment 3 Michael Nazarov 2010-04-20 07:57:26 UTC
This is not stopper for sure.

1. Affected Solaris SPARC plarform only.
2. Affected only nbexec while normal executable file bin/netbeans works fine.
3. There is simple workaround like "export DESKTOP_STARTUP_ID=something".

According to my check affected trunk builds starting Apr 06.
Comment 4 Vladimir Voskresensky 2010-04-20 08:11:05 UTC
And the fix is to use quotes:
   484  if [ ! -z "$DESKTOP_STARTUP_ID" ] ; then
Comment 5 Michael Nazarov 2010-04-20 08:13:40 UTC
Yes this is fix. But why other platforms not affected?
Comment 6 Vladimir Voskresensky 2010-04-20 08:32:14 UTC
semantics of built-in test command is old on Sparc?
Comment 7 Victor Vasilyev 2010-04-20 09:52:26 UTC
Fixed in the main trunk
http://hg.netbeans.org/main/rev/c594f6b28aa3