Control: tags -1 + pending
Hi Trent, 2011-04-04 08:54 Trent W. Buck:
Package: aptitude Version: 0.6.3-3.2 Severity: minor Instead of -sy, I tried -s <&-, which instructs the shell to close stdin after forking and before execing. The behaviour was undesirable: $ aptitude -s install <&- vim The following NEW packages will be installed: vim vim-common{a} vim-runtime{a} 0 packages upgraded, 3 newly installed, 0 to remove and 30 not upgraded. Need to get 7,425 kB of archives. After unpacking 28.6 MB will be used. Do you want to continue? [Y/n/?] Invalid response. Please enter a valid command or '?' for help. Do you want to continue? [Y/n/?] Invalid response. Please enter a valid command or '?' for help. Do you want to continue? [Y/n/?] Invalid response. Please enter a valid command or '?' for help. Do you want to continue? [Y/n/?] Invalid response. Please enter a valid command or '?' for help. Do you want to continue? [Y/n/?] Invalid response. Please enter a valid command or '?' for help. Do you want to continue? [Y/n/?] Invalid response. Please enter a valid command or '?' for help. Do you want to continue? [Y/n/?] At this point it hangs, and (obviously) you cannot provide input.
I could not reproduce this, however I added code to handle this situation and others (catch exceptions when stdin is not available and prompting for input). So marking the bug as +pending. Thanks for the report. Cheers. -- Manuel A. Fernandez Montecelo <manuel.montez...@gmail.com>