conda.csh sets $prompt for non-interactive ssh #9281
Labels
cli::tcsh
pertains to the CLI in tcsh/CSH
locked
[bot] locked due to inactivity
source::community
catch-all for issues filed by community members
stale::closed
[bot] closed after being marked as stale
stale
[bot] marked as stale due to inactivity
type::bug
describes erroneous operation, use severity::* to classify the type
Current Behavior
I scp or run non-interactive ssh command to a user@host with user having tcsh shell.$?prompt to be true via the set prompt="" line. Next my home dir .cshrc is called which if $ ?prompt and ! $?TERM it calls setenv TERM `tset -Q -` which results in a error with message "tset: standard error: Inappropriate ioctl for device".
The system runs /etc/csh.cshrc which calls /etc/profile.d/*.csh including conda.csh (conda/shell/etc/profile.d/conda.csh) which I believe causes
(I've removed that code from my .cshrc to work around this.)
Steps to Reproduce
Expected Behavior
I believe conda.csh sets$prompt and thus changes $ ?prompt from 0 to 1 for non-interactive login which it should not. If you see the same behavior, the solution might be to replace line 21:
set prompt=""
with
unset prompt
or to remove the line, but I'm not sure what the purpose of that line is, and it is also possible that some another /etc/profile.d/*.csh on my host is resetting $prompt in which case this is not a bug in conda.csh.
Environment Information
`conda info`
`conda config --show-sources`
`conda list --show-channel-urls`
The text was updated successfully, but these errors were encountered: