Tag Archive | "bash"

Tags: , ,

PHP shell rocks

Posted on 09 November 2009 by Demian Turner

shellI’ve written about this before, but since the interactive mode of PHP (php -a) seems to be broken on OS X, I think it’s worth singing the praises of Jan Kneschke’s php shell project once again.

It’s a piece of cake to install the tool with the PEAR installer, and since I last used it 2 great new features are on offer:

  • tab completion for all (or many) PHP functions and built-in classes and interfaces
  • handling of fatal errors

What a relief to have this working again!  I was ssh-ing onto my Fedora servers just to test out code but of course this became impractical pretty quickly.  And did I mention it runs great on PHP 5.3?

And if you’re tempted to use the similarly named phpsh project from the Facebook open src stables, I can confirm this is not an option with the latest version of PHP.

Comments (0)

Tags: ,

Bash Freeze, Control+s and Dead Terminals

Posted on 19 February 2003 by Demian Turner

Have you ever been typing away at the command line (this article presumes Bash) and all of a sudden everything freezes?  I don’t mean the usual network failures, modem disconnects and hung servers, I mean just some wrong key you hit while typing.

If you take the time to probe deeper into the mystery, you’ll find this common hangup is down to having hit control+s, probably accidently, which is Bash’s way of doing a scroll lock.  But how do you get out of it?  The terminal seems to be irrecoverable, right?

Comments (0)



Demian Turner's currently-reading book recommendations, reviews, favorite quotes, book clubs, book trivia, book lists