Open SgtPooki opened 1 year ago
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:
Finally, remember to use https://discuss.ipfs.io if you just need general support.
Ah sorry I broke this in https://github.com/ipfs/kubo/pull/9014.
We are not parsing the arguments, we would need to call "code", "--wait", filename
but we are doing "code --wait", filename
.
Doing strings.Split(editor, " ")
isn't enough because spaces in "
must not be broken, there is also other edge cases like \"
.
I hope someone already wrote a lib to parse a string into an argv array, I don't want to call the shell again and have os specific edge cases.
If anyone want to pick this up, I found that this is available in glibc as wordexp
, hopefully searching for golang wordexp
is gonna help you, I hope we can use a go native implementation, I don't feel we should use CGO for this.
Checklist
Installation method
ipfs-update or dist.ipfs.tech
Version
Config
Description
The bug is that I cannot run
ipfs config edit
because myEDITOR
environment variable is more than a single path to an executable.The following commands do work:
EDITOR="/opt/homebrew/bin/code" ipfs config edit
EDITOR="code" ipfs config edit