Changeset 2304 in kBuild
- Timestamp:
- Mar 1, 2009 7:48:14 AM (16 years ago)
- Location:
- trunk/src/kash
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/Makefile.kmk
r2302 r2304 40 40 ## @todo bring over PC_SLASHES? 41 41 kash_DEFS.win = \ 42 BSD PC_PATH_SEP PC_DRIVE_LETTERS PC_EXE_EXTS YY_NO_UNISTD_H 42 BSD PC_PATH_SEP PC_DRIVE_LETTERS PC_EXE_EXTS YY_NO_UNISTD_H SH_DEAL_WITH_CRLF 43 43 kash_DEFS.os2 = \ 44 44 HAVE_SYS_SIGNAME HAVE_SYSCTL_H HAVE_SETPROGNAME \ -
trunk/src/kash/expand.c
r2290 r2304 457 457 /* Eat all trailing newlines */ 458 458 p = stackblock(psh) + startloc; 459 while (dest > p && dest[-1] == '\n') 459 while (dest > p && dest[-1] == '\n') { 460 460 STUNPUTC(psh, dest); 461 #ifdef SH_DEAL_WITH_CRLF 462 if (dest > p && dest[-1] == '\r') 463 STUNPUTC(psh, dest); 464 #endif 465 } 461 466 462 467 if (in.fd >= 0) -
trunk/src/kash/tests/redirect-3
r2284 r2304 11 11 echo 3 >> $TMPFILE 12 12 VAR=`$CMD_SED -e '/2/!d' < $TMPFILE` 13 $CMD_RM -f $TMPFILE13 #$CMD_RM -f $TMPFILE 14 14 if test "$VAR" != "2"; then 15 echo "redirect-3: FAILURE - VAR=$VAR "15 echo "redirect-3: FAILURE - VAR=$VAR." 16 16 exit 1 17 17 fi
Note:
See TracChangeset
for help on using the changeset viewer.