Data piped to not-yet-installed program is read in by the install prompt
Bug #1711866 reported by
Matthew Fearnley
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found |
New
|
Undecided
|
Unassigned |
Bug Description
For example (where 'aa' is a program not yet installed)
- 'aa < /dev/null' will result in "EOF when reading a line"
- 'aa < /dev/zero' will result in the program being killed after a few seconds (out of memory?)
- 'aa < /dev/random' will probably throw an error like:
'utf-8' codec can't decode byte 0xf3 in position 0: unexpected end of data
- 'echo y | aa' will automatically trigger the 'apt install' process!
In all cases I believe the pipe is being read by the 'Do you want to install it? (N/y)' prompt.
To post a comment you must log in.