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

 
 

bug #26888: SHELL as target variable ignored

Submitted by:  None
Submitted on:  Thu 25 Jun 2009 04:16:51 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: Wont FixPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.81Operating System: MS Windows
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 27 Jun 2009 09:14:58 AM UTCelizStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1