Open LeBaronDeCharlus opened 4 months ago
Thanks for your interest in this issue! This is just a reminder to please avoid "+1" comments, and to use the upvote mechanism (click or add the 👍 emoji to the original post) to indicate your support for this issue. This helps avoid notification spam for issues with high numbers of participants while enabling the maintainers to prioritize issues. Thanks again for the feedback!
Terraform Version
Use Cases
ENHANCEMENTS
This PR proposition updates the visual indicator for the current workspace in the workspace list command output.
The asterisk (*) has been replaced with a greater-than symbol (>) to denote the active workspace and prevent unwanted behavior from wildcard symbol.
This change is reflected in both the workspace command tests and the workspace list command implementation.
Current
When you call
workspace list
argument, you have an output with your current workspace selected with*
symbol like this :If you want to iterate over the output you will have an issue because of the wildcard.
We can see here that during the iteration, the for made a
echo *
because of the wildcard and print the files in the current directory.Attempted Solutions
Bypassing
To make it work, we have to add a sed command to remove the character.
Proposal
Proposition
Replace
*
by>
(or whatever character that is not a wildcard) so we can simply do :Now even if
>
char is present, we do not have unwanted behavior with wildcard substitution when piping.That would be much more easier for shell programming (for eg) to parse output without bad surprise.
References
No response