Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Commonmark migration
Source Link

#Powershell string interpolation caught me out

Powershell string interpolation caught me out

My password generator creates really strong passwords that always includes $

I had not recognised that the $ was being interpolated in the password string to mean a variable. After escaping the $ with ` the above code works a treat.

#Powershell string interpolation caught me out

My password generator creates really strong passwords that always includes $

I had not recognised that the $ was being interpolated in the password string to mean a variable. After escaping the $ with ` the above code works a treat.

Powershell string interpolation caught me out

My password generator creates really strong passwords that always includes $

I had not recognised that the $ was being interpolated in the password string to mean a variable. After escaping the $ with ` the above code works a treat.

Source Link
Sam
  • 617
  • 1
  • 7
  • 14

#Powershell string interpolation caught me out

My password generator creates really strong passwords that always includes $

I had not recognised that the $ was being interpolated in the password string to mean a variable. After escaping the $ with ` the above code works a treat.