Changeset 2384 in kBuild for trunk/src/kash/eval.c
- Timestamp:
- Jan 16, 2010 1:00:46 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/eval.c
r2290 r2384 1168 1168 returncmd(shinstance *psh, int argc, char **argv) 1169 1169 { 1170 #if 0 1170 1171 int ret = argc > 1 ? number(psh, argv[1]) : psh->exitstatus; 1172 #else 1173 int ret; 1174 if (argc > 1) { 1175 /* make return -1 and VSC lite work ... */ 1176 if (argv[1][0] != '-' || !is_number(&argv[1][1])) 1177 ret = number(psh, argv[1]); 1178 else 1179 ret = -number(psh, &argv[1][1]) & 255; /* take the bash approach */ 1180 } else { 1181 ret = psh->exitstatus; 1182 } 1183 #endif 1171 1184 1172 1185 if (psh->funcnest) {
Note:
See TracChangeset
for help on using the changeset viewer.