bugmake - Bugs: bug #26891, make enters interactive shell

 
 

bug #26891: make enters interactive shell

Submitter:  None
Submitted:  Thu 25 Jun 2009 09:28:51 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Not A Bug Privacy:  Public
Assigned to:  eliz Open/Closed:  Closed
Component Version:  3.81 Operating System:  MS Windows
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 12 Jul 2010 06:49:38 PM UTC, comment #2: 

In 3.82 we have .SHELLFLAGS, and based on your comment about quoting etc. I'm not sure it's worthwhile to try to do even more special-casing here.

Eli, go ahead and reopen if you disagree (but please mark this "Enhancement" instead of "Bug", and if you have an idea set the Triage Status appropriately).

Paul D. Smith <psmith>
Group administrator
Sat 27 Jun 2009 09:16:35 AM UTC, comment #1: 

It's not a bug, strictly speaking: SHELL should only be set to a command that supports a "-c ARGUMENT" invocation.  CMD.EXE does not, so you invoke it as "cmd.exe -c SOMETHING" whereas it expects "cmd.exe /c SOMETHING" (and in addition the quoting in SOMETHING is wrong for CMD).

I will see if I can add special treatment for Windows shells in this case, but no promises.


Eli Zaretskii <eliz>
Group Member
Thu 25 Jun 2009 09:28:51 PM UTC, original submission:  

# makefile
all : aaa bbb

aaa : ; @echo "ok"
bbb : ; @echo "ok"

aaa : SHELL = cmd.exe
bbb : SHELL = sh.exe

$ make
Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All Rights Reserved.

C:\test\make>_
[at that point one needs to type 'exit<enter>']
ok

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by eliz (Posted a comment)
  •  

    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.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-07-12 psmith StatusNone Not A Bug
        Open/ClosedOpen Closed
    2009-06-27 eliz Assigned toNone eliz

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code