Can't generate an SBOM for directories containing a space
grantmi opened this issue · comments
I am tryin to create an SBOM by running the tool from the Windows Command Prompt.
I am using Version 2.2.6 (I think the latest version) of the tool and I am finding I can't put quotes around my path which contains spaces.
eg.
sbom generate -b “C:\Code\Directory with space” -bc “C:\Code\Directory with space” -pn MyPackage -pv 1.0.0 -ps MyCompany -nsb https://mycompany.com
gives: Unexpected argument: with
I get the same behaviour when using the Developer Command Prompt.
Note: This issue has already been raised, and has been marked as fixed, but it doesn't work for me. See Here
What am I missing?
Hello, Command Prompt uses neutral quotes (" ") rather than typographic/smart quotes (“ ”) for strings. If you use either neutral quotes or PowerShell, you should get the behavior you expect.
https://devblogs.microsoft.com/oldnewthing/20090225-00/?p=19033