note 107859 deleted from features.commandline.interactive by cmb
| From: | cmb@php.net | Date: | Tue, 09 Nov 2021 11:26:41 +0000 |
| Subject: | note 107859 deleted from features.commandline.interactive by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-217169@lists.php.net to get a copy of this message | ||
Note Submitter: lee8oi at gmail dot com
----
I use git-bash in windows to connect to my servers via SSH. When I use the interactive mode via
'php -a' command I have to hit ctrl+d twice to execute the entered code. Example:
(<ctrl+d> denotes hitting ctrl & D)
-bash$ php -a
Interactive mode enabled
<?php
echo 'hello world';
?><br />
<ctrl+d>
<ctrl+d>
hello world<br />
-bash$
Note: this still displays the <br /> tag but without the tag your output would likely be
attached to your bash prompt like this:
hello world-bash$