patchmake - Patches: patch #3144, Windows: If SHELL=cmd.exe, then...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #3144: Windows: If SHELL=cmd.exe, then run rules in batch files

Submitter:  None
Submitted:  Sun 20 Jun 2004 12:09:27 PM UTC
   
 
Category:  None Priority:  7 - High
Status:  Done Privacy:  Public
Assigned to:  psmith Originator Email:  -email is unavailable-
Open/Closed:  Closed Fixed Release:  CVS

Tue 21 Sep 2004 06:41:22 AM UTC, comment #1: 

I made some modifications that implemented this idea, although I did not use the actual code in the patch as my changes are more restrictive of the kinds of values of SHELL which will match; this patch assumes cmd.exe of the string "cmd" or "CMD" appears anywhere in the value; it would match things like SHELL = C:/CMD/BIN/SH.EXE or whatever which seemed wrong to me.

Paul D. Smith <psmith>
Group administrator
Sun 20 Jun 2004 12:09:27 PM UTC, original submission:  

The native Windows shell is cmd.exe. Under the original port
to Windows 32-bit, make would call shell commands through
batch files if no SHELL variable was found, and if no
sh.exe was found in the PATH. However, if a sh.exe was found,
then it was used instead of batch files passed to cmd.exe.

This was found to be a problem for situations where even
if a sh.exe exists, make commands should still be processed
through cmd.exe. This problem is especially important in the
iWAN development environment, where sh.exe is part of Wind River Tornado 2.2, but the shell commands of the iWAN make
files are written for cmd.exe.

The problem was resolved by allowing a SHELL=cmd.exe to be
written as part of the make files, which tells make to run
commands through cmd.exe batch files, even if a sh.exe would
be found in the PATH.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #7566:  shell_cmd.patch added by None (310B - application/octet-stream - win32 shell cmd.exe)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-09-21 psmith Assigned toNone psmith
    Open/ClosedOpen Closed
    Fixed ReleaseNone CVS
2004-09-21 psmith StatusNone Done
2004-06-20 None Attached File- Added shell_cmd.patch, #3376

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code