microsoft / sbom-tool

The SBOM tool is a highly scalable and enterprise ready tool to create SPDX 2.2 compatible SBOMs for any variety of artifacts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

A screenshot showing the user's command run in command prompt with neutral quotes and working, then run with smart quotes and throwing an error.

https://devblogs.microsoft.com/oldnewthing/20090225-00/?p=19033