Brad King
de955e4b6d
Convert KWSys to OSI-approved BSD License
...
This converts the KWSys license to a pure 3-clause OSI-approved BSD
License. We drop the previous license clause requiring modified
versions to be plainly marked. We also update the KWSys copyright to
cover the full development time range.
2009-09-28 11:37:35 -04:00
Brad King
b3e8fd3e9b
BUG: Parse escapes in single-quoted unix arguments
...
This fixes KWSys's unix-style command-line parsing to interpret
backslash escapes inside single-quoted strings.
2009-07-13 17:35:08 -04:00
Brad King
18e639d48a
ENH: Provide unix-sytle command line parsing
...
Add System_Parse_CommandForUnix to the KWSys System interface as a
utility to parse a unix-style command line. Move the existing
implementation out of ProcessUNIX. Add a flags argument reserved for
future use in providing additional behavior.
2009-07-13 16:22:14 -04:00
Brad King
0a83aa6f57
BUG: Fix windows command line escape for empty arg
...
On Windows the KWSys System package generates escapes for command-line
arguments. This fix enables quoting of the empty string as an argument.
This also adds a test to pass an empty argument to a custom command.
2008-12-18 13:36:58 -05:00
Brad King
16ec04c2a7
BUG: Fix escaping of more characters on Windows shells.
2008-04-30 15:58:45 -04:00
Brad King
47bfda0acb
BUG: Fix kwsysSystem_Shell_GetArgumentForWindows to reset the windows trailing backslash count to zero when a make variable reference is encountered.
2008-04-30 10:02:08 -04:00
Brad King
857e2e15dd
ENH: Improved escaping in kwsys/System. Added escape of % for NMake. Added escape of ; for the VS IDE.
2008-01-13 16:36:20 -05:00
Brad King
07fe611fc6
BUG: Added carrot (^) to characters that need quoting. The solaris shell needs it.
2007-05-18 09:17:36 -04:00
Brad King
5e1dd6fb51
BUG: Some single-character arguments need quoting on windows.
2007-05-17 14:01:02 -04:00
Brad King
cc507411d3
ENH: Added more special unix shell characters that require quoting. Added escaping of % as %% for shells inside mingw32-make.
2007-05-17 10:53:14 -04:00
Brad King
73197eaefa
BUG: Shell escaping needs to write % as %% for VS IDE.
2007-05-16 16:19:18 -04:00
Brad King
54731fa2c8
ENH: Adding support for # escape in Watcom WMake.
2006-10-25 11:23:04 -04:00
Brad King
87dcfb54c4
ENH: Added # character for shell escaping.
2006-10-23 17:20:59 -04:00
Brad King
038c9e27d7
ENH: Adding Shell_Flag_EchoWindows option to setup escapes for arguments to the native echo command in a shell. This special case is needed to avoid adding quotes when passing text to echo in a native windows shell which does no command line parsing at all.
2006-10-04 18:52:24 -04:00
Brad King
dd332a00cc
ENH: Re-implemented command line argument shell quoting to support several platforms with one code base.
2006-09-27 13:43:46 -04:00
Brad King
d5d8687d16
BUG: Windows_ShellArgument: need to escape if the string contains one of a set of special characters as well as spaces. Moved test for needing escapes to a separate method kwsysSystemWindowsShellArgumentNeedsEscape.
2006-09-21 14:46:40 -04:00
Brad King
683346fa3d
ENH: Adding 'System' component of C sources to hold system tools written in C. Moved windows shell command line argument escaping code to kwsysSystem_Windows_ShellArgument and kwsysSystem_Windows_ShellArgumentSize.
2006-09-21 11:49:36 -04:00