#30044 [Opn->WFx]: Don't require php tags for shell scripts.
| From: | derick@php.net | Date: | Fri, 10 Sep 2004 07:20:23 +0000 |
| Subject: | #30044 [Opn->WFx]: Don't require php tags for shell scripts. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65983@lists.php.net to get a copy of this message | ||
ID: 30044
Updated by: derick@php.net
Reported By: nconantj at frontiernet dot net
-Status: Open
+Status: Wont fix
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: Irrelevant
New Comment:
This was brought up before a couple of times, and it was decided that
we will not add this.
Previous Comments:
------------------------------------------------------------------------
[2004-09-10 04:48:32] nconantj at frontiernet dot net
The only option there that is approaching relevent is -r, but that
requires some form of quoting to prevent the shell from parsing it, and
it requires that every line have a backslash (\) just prior to the new
line.
------------------------------------------------------------------------
[2004-09-10 00:55:06] rasmus@php.net
You should read the output of: php -h
------------------------------------------------------------------------
[2004-09-10 00:46:16] nconantj at frontiernet dot net
Description:
------------
I would deeply appreciate it if I could write a PHP shell script
without the PHP required tags.
As far as implementing this, make it a command line option for the CLI
(--notags).
PHP is a powerful language that could be more easily used for system
shell scripts with this ability. I would be able to write a script as
follows:
#!/usr/bin/php --notags
<<code>>
rather than as:
#!/usr/bin/php
<?php
<<code>>
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30044&edit=1