We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the new is_command function added in #185 PR always return true.
is_command
this test fail :
import { is_command } from \"std\" main { if is_command(\"cat\") { echo \"exist\" } if is_command(\"this_is_not_command_amber\") { echo \"exist\" } }
the correct implementation is :
$[ -x "\$(command -v {command})" ]$ failed { return false } return true
not
if (unsafe $command -v "{command}" > /dev/null$) { return true } return false
sorry i don't see this before
The text was updated successfully, but these errors were encountered:
Do you want to do a PR with the fix?
Sorry, something went wrong.
Ok
No branches or pull requests
the new
is_command
function added in #185 PR always return true.this test fail :
the correct implementation is :
not
sorry i don't see this before
The text was updated successfully, but these errors were encountered: