Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.0

Request #14171 doesn't accept automatic input
Submitted: 2008-06-17 15:22 UTC
From: deminy Assigned:
Status: Open Package: PEAR_PackageFileManager_Cli (version 0.3.0)
PHP Version: 5.2.6 OS: Ubuntu 8.04
Roadmaps: (Not assigned)    
Subscription  


 [2008-06-17 15:22 UTC] deminy (Demin Yin)
Description: ------------ I expected that this cli tool could accept automatic input from a file, but actually not. The problem is, between line 90 and line 95 of file 'pfm', the script tries to open device '/dev/tty' first on non-Windows operating system. I believe '/dev/tty' only points to keyboard using it as input device in most case, which causes the script not accepting automatic input (from files or terminal input). An easy fix would be just opening php://stdin instead of /dev/tty. I tested it on Ubuntu but didn't test it on Windows. Also, I'm not quite sure if there would be any side effect. Thanks.

Comments