note 119609 added to features.commandline.usage
| From: | david at frankieandshadow dot com | Date: | Fri, 15 Jul 2016 10:27:42 +0000 |
| Subject: | note 119609 added to features.commandline.usage | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206021@lists.php.net to get a copy of this message | ||
A gotcha when using #!/usr/bin/php at the start of the file as noted above:
if you originally edited the file on Windows and then attempt to use it on Unix, it won't work
because the #! line requires a Unix line ending. Bash gives you the following error message if it
has DOS line endings:
"bash: /usr/local/bin/wpreplace.php: /usr/bin/php^M: bad interpreter: No such file or
directory"
(In Emacs I used "CTRL-X ENTER f" then type "unix" and ENTER to convert)
----
Server IP: 72.52.91.14
Probable Submitter: 159.8.170.7
----
Manual Page -- http://php.net/manual/en/features.commandline.usage.php
Edit -- https://master.php.net/note/edit/119609
Del: integrated -- https://master.php.net/note/delete/119609/integrated
Del: useless -- https://master.php.net/note/delete/119609/useless
Del: bad code -- https://master.php.net/note/delete/119609/bad+code
Del: spam -- https://master.php.net/note/delete/119609/spam
Del: non-english -- https://master.php.net/note/delete/119609/non-english
Del: in docs -- https://master.php.net/note/delete/119609/in+docs
Del: other reasons-- https://master.php.net/note/delete/119609
Reject -- https://master.php.net/note/reject/119609
Search -- https://master.php.net/manage/user-notes.php