[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #10593] $(shell) doesn't honor export but this is undocumented?

From: Kaz Kylheku
Subject: [bug #10593] $(shell) doesn't honor export but this is undocumented?
Date: Sat, 9 Jul 2022 13:09:07 -0400 (EDT)

Follow-up Comment #8, bug #10593 (project make):

This solution works for me, thanks to $(shell var=val .... command arg ...)
working fine:

  # put desired env vars into "shell_env" variable
  shell_exports := foo000=bar000 foo001=bar001
  # interpolate variable as a prefix of shell command
  $(info $(shell $(shell_exports) env | grep bar))

The Makefile can maintain a shell_exports variable as it sees fit, adding to
it with +=, removing using filter/filter-out and whatnot.


Reply to this item at:


Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]