fix: correct elvish shell syntax for Elvish.format_path_export()
#74
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Current
Elvish.format_path_export()
would cause syntax error onproto setup --shell elvish
(proto setup documentation
):versions:
proto
:0.35.5
By the way, the test
errors_no_ext
incrates/archive/tests/archive_test.rs
fails when the terminal is too narrow. It appears that the wrapped and prettily formatted panic message causes this. I am not sure how to fix this. 🤔Explaination
set
set
is a special command for assigning values to variables in Elvish. It requires an=
to separate the variable name from the value.The use of
=
is necessary because it allows for multiple assignments, such asset x y z = 1 2 3
, in my opinion.For more details, refer to the Elvish documentation on
set
.paths
$paths
is a variable containing a list of strings that are always synchronized with thePATH
environment variable. Since it is a variable, we useset
to assign values to it. Therefore, the correct way to assign values to$paths
is:For more details, refer to the Elvish documentation on
$paths
.set-env
Note
This is not related to changes in this PR, but the information may be helpful.
set-env
is a built-in command used to set environment variables. It requires an environment variable name and a value as arguments. Therefore, ways to set an environment variable are as follows:For more details, refer to the Elvish documentation on
set-env
.