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 79001 - Incorrect processing of directories with spaces for -I option.
Summary: Incorrect processing of directories with spaces for -I option.
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-23 18:48 UTC by dnikitin
Modified: 2007-05-25 17:44 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 dnikitin 2006-06-23 18:48:36 UTC
Incorrect processing of directories with spaces for -I option.

Try to add the dir with spaces in the name to -I option ("C/C++|GNU C
Compiler|General"->"Additional Include Directories")

Build project and you get something like this:
On Linux:   gcc -c -g -Idir with space -o test.o test.c
On Windows: gcc -c -g -Idir -Iwith -Ispace -o test.o test.c

rather than: gcc -c -g -I'dir with space' -o test.o test.c
Comment 1 Thomas Preisler 2006-07-11 00:21:17 UTC
confirmed. We don't handle spaces too well in general. This is just one case. 
Comment 2 Andrew Krasny 2006-10-19 10:14:43 UTC
Also want to add that commas (,) whould not be used as a separator for
directories . Comma is allowable character for directories names. Using ':' or
';' is more safe.
Comment 3 Thomas Preisler 2006-10-20 23:27:32 UTC
Fixed.