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
-B0.5
does not work under Windows PowerShell but -B 0.5
works
#1169
Comments
I can not reproduce the issue with MacOS using the USBasp programmer:
|
Windows has no native |
Take note that Strange thing is that |
-B0.5
command line option does not work but -B 0.5
works.-B0.5
command line option does not work under Windows but -B 0.5
works
-B0.5
command line option does not work under Windows but -B 0.5
works-B0.5
does not work under Windows but -B 0.5
works
Same problem for MSVC version. I checked with official 7.0 release binary and github action binary using MSVC.
|
@mariusgreuel |
No issues under Linux either.
|
Just a wild guess: is it possible that whatever shell you are using under Windows manipulates the commandline before passing it to the program? You could try inserting:
early in |
Great guess and it is indeed true.
|
After having seen that PowerShell corrupts traffic of a pipeline (I've been searchin a day for that), it doesn't really surprise me. PowerShell only appears to be good for one purpose: handling .NET objects. |
Indeed I will say this is a PowerShell bug.
|
@dl8dtl Or would you prefer to fix it by sanitizing the command line first by adding a space after the command? PowerShell is supposed to be the replacement for Windows Command Prompt. |
-B0.5
does not work under Windows but -B 0.5
works-B0.5
does not work under Windows PowerShell but -B 0.5
works
I'm afraid, at the point where AVRDUDE is called, the commandline arguments are already damaged, so there's no chance inside AVRDUDE to fix the breakage PowerShell provided. So yes, this bug report is invalid wrt. AVRDUDE. I've also heard that it was Microsoft's intention to replace cmd.exe by PowerShell, but given what they are doing, there's simply no chance. It might be good for shuffling .NET objects around, but it is a complete failure for anything else. In my case, I had a small tool that extracted packet sniffer data from a hardware gadget, formatted them as PCAP, with the intention to pass it on to Wireshark for displaying it. The data that arrived at Wireshark were pretty much corrupted in multiple ways. As I take it, all this wouldn't be considered PowerShell bugs by Microsoft but features. My conclusion was to simply no longer use it. (After all, it's scriptlet syntax is, well, pretty much off from anything that exists elsewhere.) |
You are right. I will close this as invalid.
I agree with you that the syntax is pretty much off from anything that exists elsewhere. I like PowerShell better than CMD since at least they accept things like |
BTW, I use Windows Terminal and it can use various shell like CMD, PowerShell and MSYS2 shell. Somehow Alacrity only use PowerShell (the built-in old version) -- so it has the same issue as PowerShell. Hyper uses CMD by default and there is no issue. But it can be configured to use PowerShell though. |
I think this PowerShell bug is the same as the following. |
Work-around is to use
|
As I said: pretty much off from what any other shell is doing. |
But even after 4.5 years, not fixed. :-( |
This is not expected. Tested under Windows but I will try other OS as well.
The text was updated successfully, but these errors were encountered: