Comments (4)
This appears to be an issue in Command Prompt (cmd) and not PowerShell. Doing some google searches it seems that cmd
uses the Microsoft C Runtime behavior for parsing command-line arguments that treats the final backslash as an escape character
A double quote mark preceded by a backslash (") is interpreted as a literal double quote mark (").
You would need to escape the final backslash to treat it as part of the path, or not use double quotes at all if possible. I'm not sure what winget-create could do to offer a better experience here...
In CMD, the following examples work
Escape final backslash
wingetcreate submit ".\manifests\x\xx\xxx\version\\"
Don't use quotes
wingetcreate submit .\manifests\x\xx\xxx\version\
Forward slashes
wingetcreate submit ./manifests/x/xx/xxx/version/
Forward slashes with quotes
wingetcreate submit "./manifests/x/xx/xxx/version/"
This doesn't work in CMD
Quoted backslash
wingetcreate submit ".\manifests\x\xx\xxx\version\"
All of the examples work in PowerShell tho.
References:
- https://stackoverflow.com/questions/73771339/trailing-backslash-in-c-sharp-command-line-parameter-bug-or-feature
- https://stackoverflow.com/questions/43359103/why-does-c-sharp-appear-to-partially-un-escape-command-line-arguments
- https://stackoverflow.com/questions/71283820/directory-parameter-on-windows-has-trailing-backslash-replaced-with-double-quote
- rust-lang/rust#72653
from winget-create.
Related Issues (20)
- ERROR: Resource not accessible by personal access token
- `wingetcreate.exe` fails with `Unable to create a reference to the forked repository` HOT 5
- Add replace argument to `submit`
- Zip archive fails to parse on portable package update HOT 8
- There is an issue about specific package which wingetcreate unable to parse the installer HOT 1
- WingetCreate commands should work with anonymized paths
- I cannot update the package built using inno setup HOT 7
- It totally crashes when I run wingetcreate which module not found on Windows 11 23H2 Release Preview. HOT 2
- [Feature Request] Support Qt Installer Framework HOT 2
- Root Level overwrites Installer Level Incorrectly
- Progress bar when downloading installer HOT 1
- Architecture specific `update` doesn't work HOT 2
- [Bug report] Unable to inspect MSIX file HOT 2
- `wingetcreate update` based on GitHub release
- Crash when attempting to submit a manifest HOT 1
- Bug - Fork Sync Issue HOT 8
- `wingetcreate update` / `wingetcreate update -i` Installer version problem HOT 5
- wingetcreate update confuses argument for --submit in PS script HOT 2
- Cannot update manifest with additional installers HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winget-create.