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

Strange output layout #2461

Open
popjdh opened this issue Jun 23, 2024 · 0 comments
Open

Strange output layout #2461

popjdh opened this issue Jun 23, 2024 · 0 comments

Comments

@popjdh
Copy link

popjdh commented Jun 23, 2024

Affected Version

yay v12.3.5 - libalpm v14.0.0

Describe the bug

When I tried to keep only the stderr of yay -Qkk and pass it through the pipeline, its output layout became very strange, with the beginning of the current line aligned with the end of the previous line, rather than the beginning of each line

Reproduction Steps

  1. yay -Qkk amd-ucode 2>&1 1>/dev/null
❯ yay -Qkk amd-ucode 2>&1 1>/dev/null
warning: amd-ucode: /boot/amd-ucode.img (Permissions mismatch)
warning: amd-ucode: /boot/amd-ucode.img (Modification time mismatch)
  1. yay -Qkk amd-ucode 2>&1 1>/dev/null | cat -A
❯ yay -Qkk amd-ucode 2>&1 1>/dev/null | cat -A
warning: amd-ucode: /boot/amd-ucode.img (Permissions mismatch)$
                                                               warning: amd-ucode: /boot/amd-ucode.img (Modification time mismatch)$
                                                                                                                                    %
  1. yay -Qkk amd-ucode </dev/null 2>&1 1>/dev/null | cat -A
❯ yay -Qkk amd-ucode </dev/null 2>&1 1>/dev/null | cat -A
warning: amd-ucode: /boot/amd-ucode.img (Permissions mismatch)$
warning: amd-ucode: /boot/amd-ucode.img (Modification time mismatch)$
  1. yay -Qkk amd-ucode 2>&1 1>/dev/null | tr -d '\r' | cat -A
❯ yay -Qkk amd-ucode 2>&1 1>/dev/null | tr -d '\r' | cat -A
warning: amd-ucode: /boot/amd-ucode.img (Permissions mismatch)$
warning: amd-ucode: /boot/amd-ucode.img (Modification time mismatch)$
  1. yay -Qkk miniconda3 2>&1 1>/dev/null | tr -d '\r' | cat -A
❯ yay -Qkk miniconda3 2>&1 1>/dev/null | tr -d '\r' | cat -A
warning: miniconda3: /opt/miniconda3/lib/python3.12/__pycache__/__future__.cpython-312.pyc (Modification time mismatch)$
                                                                                                                        warning: miniconda3: /opt/miniconda3/lib/python3.12/__pycache__/__future__.cpython-312.pyc (Size mismatch)$
                                         warning: miniconda3: /opt/miniconda3/lib/python3.12/__pycache__/__future__.cpython-312.pyc (SHA256 checksum mismatch)$
                                                                                                                                                               warning: miniconda3: /opt/miniconda3/lib/python3.12/__pycache__/_compat_pickle.cpython-312.pyc (Modification time mismatch)$
                                                                                                 warning: miniconda3: /opt/miniconda3/lib/python3.12/__pycache__/_compat_pickle.cpython-312.pyc (Size mismatch)$
                      warning: miniconda3: /opt/miniconda3/lib/python3.12/__pycache__/_compat_pickle.cpython-312.pyc (SHA256 checksum mismatch)$
                                                                                                                                                warning: miniconda3: /opt/miniconda3/lib/python3.12/__pycache__/_compression.cpython-312.pyc (Modification time mismatch)$
                                                                                warning: miniconda3: /opt/miniconda3/lib/python3.12/__pycache__/_compression.cpython-312.pyc (Size mismatch)$
   warning: miniconda3: /opt/miniconda3/lib/python3.12/__pycache__/_compression.cpython-312.pyc (SHA256 checksum mismatch)$
                                                                                                                           warning: miniconda3: /opt/miniconda3/lib/python3.12/__pycache__/_sysconfigdata__linux_x86_64-linux-gnu.cpython-312.pyc (Modification time mismatch)$
#Omit similar content

Expected behavior

Similar to the output layout of yay -Qkk amd-ucode </dev/null 2>&1 1>/dev/null after passing through the pipeline

Output

See Reproduction Steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant