Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stellar contract alias ls command outputs info lines to stdout instead of stderr and ignores -q #1971

Open
leighmcculloch opened this issue Mar 18, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@leighmcculloch
Copy link
Member

What version are you using?

22.5.0

What did you do?

Tried to run the contract alias ls command without additional informational output.

First using the -q option:

stellar contract alias ls 2&>/dev/null

Then by redirecting stderr to /dev/null:

stellar contract alias ls 2&>/dev/null

What did you expect to see?

The informational output to be suppressed or not visible.

$ stellar contract alias ls -q
abc: CD27DJQ4P2FXFLYFRUQQ5SSXBOZGMWPYITW7OFCDXO5G32B52KZYZC7T
def: CCUBWUQ6WMU3MTZRM5PQQ62BTTAIQTOGVXDRG4K5LYS6JLRUIM5RHWFI
$ stellar contract alias ls 2&>/dev/null
abc: CD27DJQ4P2FXFLYFRUQQ5SSXBOZGMWPYITW7OFCDXO5G32B52KZYZC7T
def: CCUBWUQ6WMU3MTZRM5PQQ62BTTAIQTOGVXDRG4K5LYS6JLRUIM5RHWFI

What did you see instead?

The informational output was still visible, being written to stdout.

$ stellar contract alias ls -q
ℹ️ Aliases available for network 'Test SDF Network ; September 2015'
abc: CD27DJQ4P2FXFLYFRUQQ5SSXBOZGMWPYITW7OFCDXO5G32B52KZYZC7T
def: CCUBWUQ6WMU3MTZRM5PQQ62BTTAIQTOGVXDRG4K5LYS6JLRUIM5RHWFI
$ stellar contract alias ls 2&>/dev/null
ℹ️ Aliases available for network 'Test SDF Network ; September 2015'
abc: CD27DJQ4P2FXFLYFRUQQ5SSXBOZGMWPYITW7OFCDXO5G32B52KZYZC7T
def: CCUBWUQ6WMU3MTZRM5PQQ62BTTAIQTOGVXDRG4K5LYS6JLRUIM5RHWFI
@leighmcculloch leighmcculloch added the bug Something isn't working label Mar 18, 2025
@github-project-automation github-project-automation bot moved this to Backlog (Not Ready) in DevX Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog (Not Ready)
Development

No branches or pull requests

1 participant