Git Product home page Git Product logo

Comments (4)

mdanish-kh avatar mdanish-kh commented on May 27, 2024 1

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:

from winget-create.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.