[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #31278] multiple shell commands within one rule invoke separate she
From: |
anonymous |
Subject: |
[bug #31278] multiple shell commands within one rule invoke separate shell environments |
Date: |
Fri, 08 Oct 2010 17:49:11 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.4) Gecko/20100624 Red Hat/3.6-8.el5 Firefox/3.6.4 GTB7.1 |
URL:
<http://savannah.gnu.org/bugs/?31278>
Summary: multiple shell commands within one rule invoke
separate shell environments
Project: make
Submitted by: None
Submitted on: Fri 08 Oct 2010 05:49:10 PM UTC
Severity: 3 - Normal
Item Group: Enhancement
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: 3.81
Operating System: None
Fixed Release: None
Triage Status: None
_______________________________________________________
Details:
Hi,
It would be really nice if make somehow used the same instance of a shell in
the commands for a given rule, for example:
SHELL = /bin/bash
f :
a=5
@echo $${a}
does not do what one wants. instead you must say:
f :
@a=5; echo $${a}
It isn't a bug, since there is no claim that make retains a shell
environment.
I don't think it would be desirable to retain the shell environment across
rules, but within a rule, i think it makes sense.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31278>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #31278] multiple shell commands within one rule invoke separate shell environments,
anonymous <=