Skip to content

Support tcsh #2311

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

Closed
jyn514 opened this issue Apr 28, 2020 · 7 comments
Closed

Support tcsh #2311

jyn514 opened this issue Apr 28, 2020 · 7 comments

Comments

@jyn514
Copy link
Member

jyn514 commented Apr 28, 2020

Describe the problem you are trying to solve
The environment variable script in ~/.cargo/env does not support tcsh.

Describe the solution you'd like
Either have two different scripts depending on the shell detected, or add 'compatibility' using something like https://superuser.com/a/373964/709183.

Notes
I'm fine if the shell isn't determined automatically as long as there's a way to select a different one.

I can go in and edit the env file by hand, but it's annoying.

@workingjubilee
Copy link
Member

workingjubilee commented Apr 28, 2020

Going to fix this as part of #2106 (comment), any further pointers you can provide on tcsh and how *BSD environments handle rcfiles and env vars is appreciated.

@kinnison
Copy link
Contributor

I'm inclined to say "You chose to shoot yourself in the foot by using a *csh, you get to keep all the splattered bloody bone fragments" but if @workingjubilee wants to have a go at supporting them too then I won't stop them.

We'd need a env.sh and env.csh because they use fundamentally different syntaxes for controlling environment variables (export vs setenv for example). If we're going to do this then we should probably also embrace the other popular non-POSIX shell out there and have an env.fish (blech)

@workingjubilee
Copy link
Member

To be clear, I don't have the faintest of how fish works, aside from "surprisingly differently", so while I will probably engage a refactoring step that will make it easier to add stuff for the fish shell, I have no firm intention of making it work.

@workingjubilee
Copy link
Member

@rustbot label: +O-bsd

@rustbot rustbot added the O-bsd *BSD related label Apr 29, 2021
@jyn514
Copy link
Member Author

jyn514 commented Apr 30, 2021

@workingjubilee this is unrelated to BSD, you can install tcsh on any machine. In my case this was CentOS 8, but I've used it on ubuntu as well.

@jyn514
Copy link
Member Author

jyn514 commented Apr 30, 2021

@rustbot label: -O-bsd

@rustbot rustbot removed the O-bsd *BSD related label Apr 30, 2021
@jyn514
Copy link
Member Author

jyn514 commented Jul 29, 2022

I think this is a misfeature tbh.

@jyn514 jyn514 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants