Skip to content

Is is possible to do expansion when exporting variables? #39

Answered by magicant
vext01 asked this question in Q&A
Discussion options

You must be logged in to vote

The current POSIX does not require the bash behavior, but it will in the future. This feature is tracked in #20.

For now, you can use a separate assignment to make ~ expand:

A=~
export A
echo $A

Replies: 1 comment 1 reply

Comment options

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

Answer selected by vext01
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