VirtualBox

Changeset 2304 in kBuild


Ignore:
Timestamp:
Mar 1, 2009 7:48:14 AM (16 years ago)
Author:
bird
Message:

kash: CRLF hacking, tests run cleanly on windows now!

Location:
trunk/src/kash
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/Makefile.kmk

    r2302 r2304  
    4040## @todo bring over PC_SLASHES?
    4141kash_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
    4343kash_DEFS.os2 = \
    4444        HAVE_SYS_SIGNAME HAVE_SYSCTL_H HAVE_SETPROGNAME \
  • trunk/src/kash/expand.c

    r2290 r2304  
    457457        /* Eat all trailing newlines */
    458458        p = stackblock(psh) + startloc;
    459         while (dest > p && dest[-1] == '\n')
     459        while (dest > p && dest[-1] == '\n') {
    460460                STUNPUTC(psh, dest);
     461#ifdef SH_DEAL_WITH_CRLF
     462                if (dest > p && dest[-1] == '\r')
     463                        STUNPUTC(psh, dest);
     464#endif
     465        }
    461466
    462467        if (in.fd >= 0)
  • trunk/src/kash/tests/redirect-3

    r2284 r2304  
    1111echo 3 >> $TMPFILE
    1212VAR=`$CMD_SED -e '/2/!d' < $TMPFILE`
    13 $CMD_RM -f $TMPFILE
     13#$CMD_RM -f $TMPFILE
    1414if test "$VAR" != "2"; then
    15     echo "redirect-3: FAILURE - VAR=$VAR"
     15    echo "redirect-3: FAILURE - VAR=$VAR."
    1616    exit 1
    1717fi
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette