pkasemir / find-the-command

Interactive command-not-found hook for bash and zsh, that uses pacman as a backend (BTW, this shit should be completely re-written as it's very ugly)
Other
26 stars 3 forks source link

Problem with && (error return) #6

Open michael-nhat opened 4 months ago

michael-nhat commented 4 months ago

when run [not yet installed command] && echo success then script will have printed success for example:

~ >>>- aws && echo success
find-the-command: "aws" is not found locally, searching in repositories...
find-the-command: "aws" may be found in the following packages:
        extra/aws-cli
        extra/aws-cli-v2
success

This is dangerous for user