Re: Curious PHP cli output in context of bash completion ?

From: Date: Wed, 27 Jan 2010 23:42:16 +0000
Subject: Re: Curious PHP cli output in context of bash completion ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-301584@lists.php.net to get a copy of this message
On Wed, 2010-01-27 at 23:27 +0100, Rene Veerman wrote: > Have you tried letting the php script output "\r\n" instead of just > "\n" as newline ? > > On Wed, Jan 27, 2010 at 10:46 PM, Alexandre Simon <lexsimon@gmail.com> wrote: > > Hello, > > > > I'm pretty "sure" (in realty I do not understand a lot about the problem... > > :( ) this is a distribution or a version problem but maybe some PHP/bash expert here could have > > some idea and tell me what I could try to solve the problem described here : > > > > http://ubuntuforums.org/showthread.php?p=8734334 > > > > Shortly : PHP cli seems to output something like newlines that bash can not intercept. > > > > My initial goal is to complete a PHP script, using the PHP script itselfs as function for > > bash completion. Mechanism that works perfectly on some other platforms (with different PHP AND bash > > version ...) than Ubuntu 8.04 and 9.10 (PHP 5.2.4 and PHP 5.2.10 respectively). The interest : only > > one thing to code : the php script. Moreover : the PHP scripts knows "things" (DB > > connection, .. etc) that the bash script would have some difficulty to get. > > > > Thank you a lot for any help. > > > > -- > > Alex > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > Also, MySQL has good command line tools and there are plenty of command line interfaces to it you can use from Bash Thanks, Ash http://www.ashleysheridan.co.uk

« previous php.general (#301584) next »