Product, version and build: PowerShell Studio 2016 v5.2.122
32 or 64 bit version of product: 64 bit
Operating system: Windows 7 Enterprise SP1
32 or 64 bit OS: 64 bit
PowerShell Version: 4.0
Hello, whenever you add a backslash right before the trailing double quote in a string, the string's enclosing double quotes are converted into single quotes. This has the adverse effect of preventing PowerShell from parsing variables within that string.
I could not find the option to prevent double quote conversions into single quotes, did I overlook it?
Thank you.
Enclosing double quotes converted into single quotes when backslash added to end of string
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Enclosing double quotes converted into single quotes when backslash added to end of string
Here is an animated GIF of the behavior in question:
Re: Enclosing double quotes converted into single quotes when backslash added to end of string
My apologies for the delay, but I'm unable to reproduce this on my end. Here's a clip of me attempting to reproduce it: http://screencast.com/t/H3Yt7WY3uN7
Are you able to upload a screenshot of your formatting options? They're located in File -> Options -> Formatting.
Are you able to upload a screenshot of your formatting options? They're located in File -> Options -> Formatting.
DevinL
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Enclosing double quotes converted into single quotes when backslash added to end of string
Hi DevinL,
Please see the Formatting options panel below. I think I'm on to something, I use the French Canadian keyboard layout which requires me to use the right Alt key + tilde keyboard combination (the key to the left of number 1). If I switch the keyboard layout back to English US, the issue does not occur.
Please see the Formatting options panel below. I think I'm on to something, I use the French Canadian keyboard layout which requires me to use the right Alt key + tilde keyboard combination (the key to the left of number 1). If I switch the keyboard layout back to English US, the issue does not occur.
Re: Enclosing double quotes converted into single quotes when backslash added to end of string
Ahh yes, that did it. I installed the French Canadian keyboard layout and had the same thing happen when using alt + tilde. I've filed an internal bug and will post here when I have more information.
DevinL
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.