Replies: 8 comments
-
I think it's a feature that the older version gets overwritten with the newer version. |
Beta Was this translation helpful? Give feedback.
-
We could however prevent overwriting by introducing a flag: |
Beta Was this translation helpful? Give feedback.
-
@ieugen: If you're concerned about security, you need to make sure you only install scripts from a) authors you trust or b) code that you've verified yourself. If you're installing from an untrusted source, there's nothing that |
Beta Was this translation helpful? Give feedback.
-
I also recommend putting local bin directories as a suffix in the export PATH="$PATH:$HOME/.local/bin" This reduces the risk of overriding something like That said, this isn’t a complete solution since a malicious script could start a subshell with a new |
Beta Was this translation helpful? Give feedback.
-
I can overwrite ANY binary this way so IMO it needs some consideration or at least a notice. @rads :
This is normally set by the distribution.
True. We can maybe do one or more of the following:
|
Beta Was this translation helpful? Give feedback.
-
I agree with @ieugen. I think leaving all the responsibility to the end user of
I believe something like So one extra vote for having I would want this to go even further than only
Maybe a permission system would be interesting. "Script asks permission for X, Y, Z. Please confirm" |
Beta Was this translation helpful? Give feedback.
-
@jeroenvandijk: In general I'm in favor of making To keep things simple, I think of I think it's too far for #!/usr/bin/env bash
echo "Hello" {
"name": "rads-ls",
"bin": {"ls": "./ls"}
}
|
Beta Was this translation helpful? Give feedback.
-
I'm going to move this to a discussion since I don't currently plan to take any action on this issue, but I don't want to outright close it either. |
Beta Was this translation helpful? Give feedback.
-
bbin install should fail when a binary with the same name exists at the path.
It should IMO allow user to force installation with a flag.
This could be a security issue, especially with package owners allowed to set the binary name.
Some people might chose to override things like
ls
or other stuff.Current status:
Might be related to
Beta Was this translation helpful? Give feedback.
All reactions