osx - How do I make the PHP CLI use newlines on OS X? -
I have a problem with the interactive shell for PHP on Mac OS X Terminal. That is, it does not break the line after each command:
php> echo "hello heap overflow!"; Hello Echo "As you can see, there was no new line."; As you can see, there was no new line. Php & gt; Echo "As you can see, there was no new line" If I go up and down in history then it also removes my sentences. "; If I go up and down in history then
>
As you can tell, I can not go up and down in my history, because It corrupts the buffer and does this so I do not know what I am writing. Does anyone know how OK this is?
My PHP version:
$ php-v PHP 5.4.24 (CLI) (Created: Jan 1 9, 2014 21:32:15) Copyright (c) 1997-2013 PHP group Zend engine v2.4.0, Copyright ( Mr.) 1998-2013 Zend Technologies
If you want the new line CLI, then use clear return carriage to:
$ php> echo "Hello \ r \ nWorld!";
should output:
$ Hello World!
Comments
Post a Comment