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 123285 - -n appears in terminal window on some platforms
Summary: -n appears in terminal window on some platforms
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ gordonp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-03 19:34 UTC by Thomas Preisler
Modified: 2008-02-20 18:42 UTC (History)
0 users

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 Thomas Preisler 2007-12-03 19:34:52 UTC
-n appears before the prompt in the output window on some platforms:

   -n [Press Enter to close window]

It happens now on Mac OS X Leopard and Solaris 11.

The code in the dorun.sh script probably doesn't take into account the the default shell on the affected platforms may have changed and the build-in echo don't support 
-n:


--------------dorun.sh
if [ -x /usr/ucb/echo ]
then
    # Solaris' echo doesn't support the -n option, so use an alaternate echo
    ECHO=/usr/ucb/echo
else
    ECHO=echo
fi
Comment 1 Thomas Preisler 2007-12-03 19:55:18 UTC
See also CR 6633798   acc   7D "-n [Press Enter to close window]" appears in gnome-terminal on SXDE machine