Skip to main content
February 27, 2023
Question

BUG: Why the 1Password CLI does not filter whitespaces at the end?

  • February 27, 2023
  • 1 reply
  • 94 views

Dear all,

using 1Password CLI on macOS I was wondering why

op item get "Item Test"
Can not be found and the error is like:
[ERROR] 2023/02/27 23:57:09 "Item Test" isn't an item. Specify the item with its UUID, name, or domain.

I figured out that

op item get "Item Test "
is working.

By design whitespace(s) at the end should be cut or allowed in the CLI
I consider it a bug, because you allow the user to create an item with the name " " or " " or what ever how many white spaces.
BUT its not possible to read that items:

op item get " "
[ERROR] 2023/02/28 00:04:11 You must specify the item with the or argument or as piped input.

Best,
Johannes


1Password Version: 8.10.0 (81000055)
Extension Version: Not Provided
OS Version: macOs 13.2.1
Browser:_ Chrome

1 reply

Jack_P_1P
1Password Employee
1Password Employee
March 13, 2023

Hi @JohannesKnust:

Thanks for your feedback on this. I'll share it with the team.

Jack