Posted by Bryan Oakley on 12/01/06 23:35
comp.lang.tcl wrote:
> When I call it via command-line:
>
> php -q /home/ppowell/web/blah.php << '<?xml version="1.0"
> encoding="utf-8" ?><blah><foo id="1"></foo></blah>'
>
> This happens:
>
> /users/ppowell -->php -q /home/ppowell/web/blah.php << '<?xml
> version="1.0" encoding="utf-8" ?><blah><foo id="1"></foo></blah>'
>
> [and it just sits there for input until I hit CTRL-C]
>
'<<' has a different behavior in a shell than it does in Tcl. You can't
use them the same way.
Using '<<' from a bash shell is what is called a "here document". Here's
one description:
http://www.faqs.org/docs/bashman/bashref_42.html#SEC42
Navigation:
[Reply to this message]
|