-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tcsh is unusable when $status
is read-only
#40
Comments
What is the behaviour you are hoping to get from |
Well, probably something else than the current behavior. There are a few things that would be possible, in my opinion:
I personally don't like 3 much but 1 and 2 seem like they could both be practical in some way, at least certainly better than the current behavior (I personally have a slight preference for 2, but it's not for me to decide). |
Without a solid use-case for To me |
Well, even if the other possible use-cases I presented here don't seem very useful (though they'd all be made possible by one of the simple possible fixes to avoid breaking the shell), there's most certainly a solid use-case for having it at least not break the shell, in the same way there's a solid use-case for fixing other bugs that break or crash the shell (at least, I certainly hope you consider that worth doing). So the least that should be done, in my opinion, is making it not break the shell by either having the shell ignore errors from read-only |
I don't think the user shoud
If you accidentally In my mind this falls into the It would seem to me that |
How is being unable to execute any commands at all (even |
This doesn't actually seem true: It isn't mentioned anywhere that the shell will execute the equivalent of |
I guess that a possible fix is to special-case $status and only warn if it is read-only. |
I just tried testing this. I guess it's because I have precmd set, but I just got the error that status is read-only repeating in an endless loop until tcsh coredumped with SIGSEGV after about a minute! |
I don't know whether to put this in the previous issue, but this seems different enough to put it into a new one, even if it is directly related.
Anyway, doing
set -r status
makes tcsh completely unusable afterwards, i.e. a session looks like this:The text was updated successfully, but these errors were encountered: