Bug ID 963548
Summary fish: openssl complains bad password read when piping through an alias function
Classification openSUSE
Product openSUSE Tumbleweed
Version 2015*
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Other
Assignee bnc-team-screening@forge.provo.novell.com
Reporter hguo@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

fish is v2.2.0-2.2

Define a function that works as a command alias, for example:

function grep
  /usr/bin/grep -i -E --color=auto $argv
end

Then run an openssl command that requires reading a password, and pipe the
output through the function:

openssl enc -aes256 -in encrypted -d | grep abc

Immediately results in openssl error "bad password read", and no attempt is
made to read a password.

If the pipe destination was not a function, openssl has no trouble reading the
password:
openssl enc -aes256 -in pass -d | /usr/bin/grep -i -E --color=auto abc


You are receiving this mail because: