Skip to content

Add support for tcsh shell #3413

@Rageoholic

Description

@Rageoholic

Problem

On FreeBSD, rustup will generate a .cargo/env that is sourced in .profile. There are two issues here.

  1. tcsh does not source .profile on run, it sources .login
  2. Manually sourcing .cargo/env will give a syntax error that too many arguments were given to case

Steps

  1. Install FreeBSD on a fresh machine with tcsh as the set shell (I used a VM)
  2. Install rustup using the given directions on the website
  3. You can either try to source .cargo/env or exit and reenter the shell
  4. Try running any rustup commands

Possible Solution(s)

  • Modify .cargo/env to not use BASH specific extensions (I wouldn't quite know what specific syntax you should be using)
  • Add sourcing .cargo/env to .login if present,

Notes

No response

Rustup version

Rustup 1.26.0

Installed toolchains

rustc 1.71.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions