Error when default shell is non POSIX

Open Beginner friendly
#12 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
bash, fish, rust
Domain
cli

Research direction

Start at the terminal-wakatime init entry point and trace how the shell is selected when invoked from Fish versus Bash; the issue identifies config.fish and bashrc as the affected files. Done means the generated bashrc line explicitly requests Bash and a Bash subshell no longer receives Fish configuration.

Written by the indexing model from the issue text.

Description

When running the script with Fish and letting it modify the config.fish and bashrc files it will write the respective terminal-wakatime init at the bottom of the files. The problem is when I use a bash as a subshell (Ran from fish) that command outputs the config of fish rather than bash, and, since fish is not posix it doesn't works.

It can be corrected by always specifying which shell you're using, i.e; terminal-wakatime init bash. But it should be made the default option for bash too (SInce it already specifies it when writing to config.fish).

Dominant language
Rust
Stars
5
Forks
4
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.