Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
XIII
4 years agoSuper Contributor
[46] How can I use a newline character in a field value?
In the past I created some multi-line fields for SSH keys after reading this tip on this forum.
I now want to update one of those keys using op item edit "K" 'private key=X\nY' .
However then ...
Former Member
4 years agoHey XIII, thank you for pointing this out to us!
Indeed, it seems that strings that are passed to op item edit aren't parsed at all, except for separating the field key from the field value. I am going to open up a bug ticket for this, and discuss it with my team during our next meeting. I will follow up on the thread with the due updates.
Have you noticed such unexpected behaviour in other parts of the CLI too?
Also, do you have any other suggestions, related to how op item edit should work? Would, for example, being able to pipe input into the command be helpful to you?
Thank you for trying out our CLI. We're looking forward to hearing more of your feedback!!
Best,
Horia