I expect alias from MC_CONFIG_ENV_FILE occurred in the output of mc alias ls
Actual behavior
It did not but commands like mc ls works
Steps to reproduce the behavior
echo 'MC_HOST_some=xxxxx' > /etc/mc.config
export MC_CONFIG_ENV_FILE=/etc/mc.config
mc alias list
mc --version
mc version RELEASE.2024-07-31T15-58-33Z (commit-id=f0d2ad47084cf1fbda8f955e9c6f4ee5d9c1daec)
Runtime: go1.22.5 linux/amd64
Copyright (c) 2015-2024 MinIO, Inc.
License GNU AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html
System information
Linux dev006 5.4.0-100-generic #113-Ubuntu SMP Thu Feb 3 18:43:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Also, since there's multiple file related to alias config, adding a field telling which file it is from would be helpful, like:
play
URL : https://play.min.io
AccessKey : Q3AM3UQ867SPQQA43P2F
SecretKey : zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG
API : S3v4
Path : auto
Src: /home/some-user/.mc/config.json
Expected behavior
I expect alias from
MC_CONFIG_ENV_FILE
occurred in the output ofmc alias ls
Actual behavior
It did not but commands like
mc ls
worksSteps to reproduce the behavior
mc --version
mc version RELEASE.2024-07-31T15-58-33Z (commit-id=f0d2ad47084cf1fbda8f955e9c6f4ee5d9c1daec) Runtime: go1.22.5 linux/amd64 Copyright (c) 2015-2024 MinIO, Inc. License GNU AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html
System information
Linux dev006 5.4.0-100-generic #113-Ubuntu SMP Thu Feb 3 18:43:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Also, since there's multiple file related to alias config, adding a field telling which file it is from would be helpful, like: