bugmake - Bugs: bug #55757, FR: strict variable substitution

 
 

bug #55757: FR: strict variable substitution

Submitter:  None
Submitted:  Thu 21 Feb 2019 08:38:59 PM UTC
   
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  None Operating System:  None
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 24 Apr 2019 04:39:11 AM UTC, comment #4: 

That's really close to what I want! A fail-undefined-variables would be even closer, if the team feels it's a good addition.

Anonymous
Tue 23 Apr 2019 03:54:06 PM UTC, comment #3: 

Is --warn-undefined variables not sufficient?

If you want to fail recipes, would it be feasible to
set the shell to bash, and then set 'nounset' in the prolog of each recipe?

Anonymous
Tue 23 Apr 2019 03:28:16 PM UTC, comment #2: 

The FR is for make variable substitution, not shell variables.

Phillip Oertel <philo>
Thu 21 Feb 2019 10:01:08 PM UTC, comment #1: 

Try setting:

.SHELLFLAGS := -u -c

Anonymous
Thu 21 Feb 2019 08:38:59 PM UTC, original submission:  

Implement an option to fail recipes on undefined variable references (similar to bash's nounset option).

I'm sure it can't be default, so would need to be enabled with an option. Would prefer an option that can be set inside the makefile, like a pseudo-target (".NOUNSET:" or something) (as opposed to a command-line flag).

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 philo (Posted a comment)
  • -email is unavailable- added by philo
  •  

    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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-02-21 philo Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code