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

Can't escape dollar sign in Powershell string #1803

Open
johhnry opened this issue Jul 26, 2024 · 0 comments
Open

Can't escape dollar sign in Powershell string #1803

johhnry opened this issue Jul 26, 2024 · 0 comments
Labels
bug os:windows Windows-specific shell Shell related issues

Comments

@johhnry
Copy link

johhnry commented Jul 26, 2024

I want to use a Powershell command that has dollar signs in string arguments (to render Houdini things) inside a Rez environment. The issue is that it works in Powershell by using single quotes but not when launching the command in a Rez resolved env.

Environment

  • OS: Windows 10 Professionnel
  • Rez version: 3.1.1
  • Rez python version: Python 3.11.9

To Reproduce

  1. Launch the following command in Powershell:
rez env python --shell=powershell -- Write-Output 'out.$F4.exr'

Expected behavior
It should print out.$F4.exr since single quotes escape the dollar sign in Powershell.

Actual behavior
It interprets $F4 as a variable and does the interpolation. (Note that it works when resolving the environment first and then launching the command)

How can I bypass this behavior?

@johhnry johhnry added the bug label Jul 26, 2024
@JeanChristopheMorinPerso JeanChristopheMorinPerso added os:windows Windows-specific shell Shell related issues labels Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug os:windows Windows-specific shell Shell related issues
Projects
None yet
Development

No branches or pull requests

2 participants