Changeset 535 for trunk/src/gmake/w32
- Timestamp:
- Sep 19, 2006, 6:29:18 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/w32/subproc/sub_proc.c
r503 r535 1073 1073 */ 1074 1074 bytes_required++; 1075 #ifdef KMK /* for the space before the final " in case we need it. */ 1076 bytes_required++; 1077 #endif 1075 1078 1076 1079 command_line = (char*) malloc(bytes_required); … … 1117 1120 } else { 1118 1121 1119 /*1120 * We have to insert a backslash for the "1121 * and each \ that precedes the ".1122 */1123 backslash_count++;1124 1125 while(backslash_count) {1126 *(command_line_i++) = '\\';1127 backslash_count--;1128 };1122 /* 1123 * We have to insert a backslash for the " 1124 * and each \ that precedes the ". 1125 */ 1126 backslash_count++; 1127 1128 while(backslash_count) { 1129 *(command_line_i++) = '\\'; 1130 backslash_count--; 1131 }; 1129 1132 } 1130 1133 #if !defined(HAVE_MKS_SHELL) && !defined(HAVE_CYGWIN_SHELL) … … 1152 1155 }; 1153 1156 #endif 1157 #ifdef KMK 1158 /* 1159 * ash it put off by echo "hello world" ending up as: 1160 * G:/.../kmk_ash.exe -c "echo ""hello world""" 1161 * It wants a space before the last '"'. 1162 * (The 'test_shell' goals in Makefile.kmk tests this problem.) 1163 */ 1164 if (command_line_i[-1] == '\"' && cygwin_mode && have_sh && !argvi[1]) { 1165 *(command_line_i++) = ' '; 1166 } 1167 #endif 1154 1168 *(command_line_i++) = '\"'; 1155 1169 }
Note:
See TracChangeset
for help on using the changeset viewer.