Skip to content

How do I set make variables from nushell? #6243

Answered by kubouch
amtoine asked this question in Q&A
Discussion options

You must be logged in to vote

Maybe try make target $"VAR=($env.PWD)". You probably want to send VAR=/foo/bar/baz to make target, right? From Nushell's point if view it's just a string. It doesn't know that it's supposed to be variable VAR with assigned value /foo/bar/baz, that's the external command's job to interpret. Our string building is also different from bash etc. so that's why your attempts didn't work.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amtoine
Comment options

amtoine Aug 6, 2022
Maintainer Author

Answer selected by amtoine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants