Skip to content
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

Can't generate an SBOM for directories containing a space #609

Closed
grantmi opened this issue Jul 9, 2024 · 1 comment
Closed

Can't generate an SBOM for directories containing a space #609

grantmi opened this issue Jul 9, 2024 · 1 comment
Assignees

Comments

@grantmi
Copy link

grantmi commented Jul 9, 2024

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?

@jalkire jalkire added needs triage Default status upon issue submission Needs Investigation and removed needs triage Default status upon issue submission labels Jul 11, 2024
@jalkire jalkire self-assigned this Jul 11, 2024
@jalkire
Copy link

jalkire commented Jul 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants