Is this really a quote "bug"? Something weird is happening, however, and I'm not sure it has anything to do with quotes.
The code you posted is working fine for me with respect to the quoting. But the strange thing is that output is not "Ineedthisdisplayed" as it appears to be in the debug log window. If you output to a file, it is actually this:
wth.png
What's up with all the CRLFs?!? Changing the parameter to Parameter=echo 'I need this displayed' works fine, but using double-quotes doesn't work no matter how magical you make them. I'm not sure why the results are different with RunCommand compared to typing that same command into an actual PS window.
You do not have the required permissions to view the files attached to this post.
SilverAzide wrote: ↑September 3rd, 2021, 2:45 pm
Is this really a quote "bug"? Something weird is happening, however, and I'm not sure it has anything to do with quotes.
The code you posted is working fine for me with respect to the quoting. But the strange thing is that output is not "Ineedthisdisplayed" as it appears to be in the debug log window. If you output to a file, it is actually this:
wth.png
What's up with all the CRLFs?!? Changing the parameter to Parameter=echo 'I need this displayed' works fine, but using double-quotes doesn't work no matter how magical you make them. I'm not sure why the results are different with RunCommand compared to typing that same command into an actual PS window.
I'm not sure what is removing the double quotes. It shouldn't be Rainmeter or the RunCommand plugin, as quotes are only removed from any option value if they are both starting and ending quotes on the option. Not quite sure what is going on here.
1.png
2.png
Clearly PowerShell deals with the "echo" command (which is an alias in PowerShell anyway) differently than cmd.exe does.
3.png
You do not have the required permissions to view the files attached to this post.
SilverAzide wrote: ↑September 3rd, 2021, 2:45 pm
Is this really a quote "bug"? Something weird is happening, however, and I'm not sure it has anything to do with quotes.
The code you posted is working fine for me with respect to the quoting. But the strange thing is that output is not "Ineedthisdisplayed" as it appears to be in the debug log window. If you output to a file, it is actually this:
wth.png
What's up with all the CRLFs?!? Changing the parameter to Parameter=echo 'I need this displayed' works fine, but using double-quotes doesn't work no matter how magical you make them. I'm not sure why the results are different with RunCommand compared to typing that same command into an actual PS window.
echo can take multiple parameters.
Parameter=echo "AA bb Cc" becomes, Parameter=echo AA bb Cc
death.crafter wrote: ↑September 3rd, 2021, 3:03 pm
Hence the bug is, double quotes are being removed even if there is none at start.
Well, I don't think this has anything to do with Rainmeter. It is PowerShell that is interfering somehow in the quote handling, as jsmorley pointed out.
Yeah, I think I would use Write-Host "I need this displayed" in PowerShell rather than echo "I need this displayed", which is really Write-Output "I need this displayed".
SilverAzide wrote: ↑September 3rd, 2021, 3:05 pm
Well, I don't think this has anything to do with Rainmeter. It is PowerShell that is interfering somehow in the quote handling, as jsmorley pointed out.
Screenshot 2021-09-03 203801.png
Powershell is behaving correctly. Rainmeter isn't. Try Parameter=echo """"I need this displayed!""""
You do not have the required permissions to view the files attached to this post.
jsmorley wrote: ↑September 3rd, 2021, 3:09 pm
Yeah, I think I would use Write-Host "I need this displayed" in PowerShell rather than echo "I need this displayed", which is really Write-Output "I need this displayed".
It's not about the output really. It's about the double quotes. echo was just a simple example to portray the thing.