VirtualBox

Changeset 554 in kBuild


Ignore:
Timestamp:
Sep 27, 2006 6:57:05 PM (19 years ago)
Author:
bird
Message:

Giving up non batch mode with cygwin ash, it screws up big time with double quoted argument.

Location:
trunk/src/gmake
Files:
2 edited

Legend:

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

    r552 r554  
    295295# Shell execution tests.
    296296#
    297 test_shell: test_shell_quoting test_shell_newline
     297test_shell: test_shell_quoting test_shell_double_quoting test_shell_newline
    298298
    299299# shell double and single quoting check (was busted on windows in 3.81).
     
    306306        ( echo "  #define PWD \"`pwd`\""; )
    307307
     308test_shell_double_quoting:
     309        $(ECHO_EXT) "foo foo foo" | $(SED_EXT) -e \
     310                "s/foo/$@/" -e \
     311                "s/foo/works/" \
     312                -e "s/foo/\!/"
     313
     314test_shell_double_quoting2:
     315        $(ECHO_EXT) "foo foo foo" | $(SED_EXT) -e \
     316                "s/foo/$@/" -e \
     317                "s/foo/works/" \
     318                -e\
     319                "s/foo/\!/"
     320
    308321# when using batch mode shell, the newline got escaped twice and spoiling everything.
    309322test_shell_newline:
  • trunk/src/gmake/config.h.W32

    r526 r554  
    493493extern int my_stat(const char *, struct stat *);
    494494#define stat(_path, _st) my_stat(_path, _st)
     495
     496/* cygwin sucks to much in one end or the other. */
     497#define BATCH_MODE_ONLY_SHELL
     498
Note: See TracChangeset for help on using the changeset viewer.

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