#30044 [Bgs->Opn]: Don't require php tags for shell scripts.
| From: | nconantj at frontiernet dot net | Date: | Fri, 10 Sep 2004 02:48:34 +0000 |
| Subject: | #30044 [Bgs->Opn]: Don't require php tags for shell scripts. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65975@lists.php.net to get a copy of this message | ||
ID: 30044
User updated by: nconantj at frontiernet dot net
Reported By: nconantj at frontiernet dot net
-Status: Bogus
+Status: Open
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: Irrelevant
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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