Data piped to not-yet-installed program is read in by the install prompt

Bug #1711866 reported by Matthew Fearnley
6
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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.