bugmake - Bugs: bug #26888, SHELL as target variable ignored

 
 

bug #26888: SHELL as target variable ignored

Submitter:  None
Submitted:  Thu 25 Jun 2009 04:16:51 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Wont Fix Privacy:  Public
Assigned to:  None 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
   

Sat 27 Jun 2009 09:09:20 AM UTC, comment #3: 

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).

In any case, I'm closing this bug.

Eli Zaretskii <eliz>
Group Member
Fri 26 Jun 2009 03:41:07 PM UTC, comment #2: 

As you might have noticed, adding .exe causes another strange bug: http://savannah.gnu.org/bugs/?26891

Anonymous
Thu 25 Jun 2009 07:39:24 PM UTC, comment #1: 

TRy cmd.exe and sh.exe, and you will see that SHELL is NOT ignored...

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

# makefile
all : aaa bbb

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

aaa : SHELL = cmd
bbb : SHELL = sh

$ make
"ok"
"ok"

As sh removes the quotes, this should be:
"ok"
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 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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-06-27 eliz StatusNone Wont Fix
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code