Here's another bit of strange behavior I've known about since
ksh-20120612 but was hoping would be fixed in ksh-20140929. Most of the
time, when I try to execute a file that doesn't exist I get the expected
error message: ... not found [No such file or directory]. However, as
the following
File name completion still has problems when there's only one file
in a directory. If it makes any difference I have FCEDIT=vi. The
misbehavior is hard to explain, but here goes. Let's use /System on Mac
OS 10.5:
$ ls /System
Library
If I go again and hit tab here:
$ ls /System/
No, this is not another bug report.
I've been experimenting with the discipline function PS1.get. It has
the advantage that it can place more dynamic information in the prompt
than the variable. For instance, it's possible to get the current load
average in the prompt with PS1.get.
Have you tried making the first part of PS1.get retrieve $? and put it in a
holder var. Then the last part of PS1.get returns that value.
Quick mock-up
function PS1.get {
typeset retval=$?
echo Last command returned $retval
return $retval
}
I do something similar all the type in my