Skip to content
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

Shell type plugin can resolve incorrectly in rez.system on Linux. #1754

Open
cumulus-vfx opened this issue May 14, 2024 · 1 comment · May be fixed by #1765
Open

Shell type plugin can resolve incorrectly in rez.system on Linux. #1754

cumulus-vfx opened this issue May 14, 2024 · 1 comment · May be fixed by #1765
Labels
bug difficulty/easy This task is easy help wanted Help us improve rez shell Shell related issues

Comments

@cumulus-vfx
Copy link

This line in rez.system.System.shell

shell = os.path.basename(output.strip().split()[0]).replace('-', '')

Will throw a TypeError always as you cant replace with str char's on a byte string

So this function will always fallback to use $SHELL first to wrangle the shell name

This can be inaccurate in a case where the SHELL env var is wrong for the current running parent shell of the rez process
Where as if getting via ps is more reliable.

Environment

  • Centos 7
  • Rez version 2.112.0
  • Rez python version 3.7

Issue still in latest release 3.1.1

@JeanChristopheMorinPerso JeanChristopheMorinPerso added shell Shell related issues help wanted Help us improve rez difficulty/easy This task is easy labels May 14, 2024
@parikshittiwari740
Copy link

parikshittiwari740 commented Jun 4, 2024

Hey @JeanChristopheMorinPerso, I have a PR out for this linked to the ticket 😄

Sorry for tagging but I was not sure how/when the review is done and whether I am expected to do something after posting the PR. Please ignore my message if you guys are busy and I simply have to wait. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug difficulty/easy This task is easy help wanted Help us improve rez shell Shell related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants