-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Open
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugKeepOpenThe bot will ignore these and not auto-closeThe bot will ignore these and not auto-closeWG-Languageparser, language semanticsparser, language semanticsWG-NeedsReviewNeeds a review by the labeled Working GroupNeeds a review by the labeled Working Group
Description
Instructions for many tools from the Linux world suggest setting an environment variable for a single invocation of a command like:
JEKYLL_ENV=production jekyll buildThe equivalent in PowerShell is cumbersome:
try {
$oldValue = $env:JEKYLL_ENV
$env:JEKYLL_ENV = "production"
jekyll build
} finally {
$env:JEKYLL_ENV = $oldValue
}I believe a similar syntax could work in PowerShell:
$env:JEKYLL_ENV="production" jekyll buildandyleejordan, FranklinYu, SeeminglyScience, gwttk, yinso and 80 moreLemminghmklement0, charmpeach, daniel-liuzzi, rkeithhill, ArmaanMcleod and 2 morekt81, daniel-liuzzi, marcelwgn, ArmaanMcleod, vaisest and 2 moreYDX-2147483647 and vaisest
Metadata
Metadata
Assignees
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugKeepOpenThe bot will ignore these and not auto-closeThe bot will ignore these and not auto-closeWG-Languageparser, language semanticsparser, language semanticsWG-NeedsReviewNeeds a review by the labeled Working GroupNeeds a review by the labeled Working Group
Type
Projects
Status
In progress