VirtualBox

Changeset 2304 in kBuild for trunk/src/kash/expand.c


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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)
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