OSDN Git Service

Add multiline support to `wp shell` via backslash
authorscribu <mail@scribu.net>
Tue, 30 Apr 2013 16:37:47 +0000 (19:37 +0300)
committerscribu <mail@scribu.net>
Tue, 30 Apr 2013 16:37:47 +0000 (19:37 +0300)
commit8fa99e9b589dc80a69bff2bcf19f0f7aff7a1b9b
tree02112b066db6c976121465d37e1ff739e96c2da3
parentb0c6fe1996c4ee9e5421be3c97a5569df448129b
Add multiline support to `wp shell` via backslash

We could remove the -r flag from the `read` builtin, but that would have
several drawbacks:

* couldn't dynamically change the prompt
* would add another layer of escaping, on top of PHP's eval()
features/shell.feature
php/commands/shell.php