zshrc: Fixed `minimal-shell' function
authorFrank Terbeck <ft@bewatermyfriend.org>
Wed, 10 Mar 2010 23:28:32 +0000 (00:28 +0100)
committerFrank Terbeck <ft@bewatermyfriend.org>
Wed, 10 Mar 2010 23:38:35 +0000 (00:38 +0100)
commit00085f1df9b9da86d01105627f7c42a0669b1e0b
treea4eaaeeba678a95c25b3ea521fef62746f13bc6c
parent442da815e7724dc8601329d6f725a9f65e656382
zshrc: Fixed `minimal-shell' function

Well, it was actually completely broken. Because I fed an absolute path
name into `check_com()' without testing it - instead of using the
obvious test.

This also fixes an annoyance:

If infocmp returns an octal code such as this:
    backspace='\177'

That screwed up our special-string resolution, because mksh's `print'
builtin doesn't like \177 style octals. It *requires* them to look like
this: \0177 (leading zero).

We now just translate these strings like this:
    \\[1-7][0-7]*    =>   \\0[1-7][0-7]*

That should be fairly safe. - And this time, mika and me actually tested
the code before committing it. :-)
etc/minimal-shellrc
etc/zsh/zshrc