<#19367 Builtin bash function restriction limits u...
# github-notifications
c
#19367 Builtin bash function restriction limits usability of shell commands Issue created by engnatha Describe the bug A custom shell script needed to invoke a third party
make
file. The
make
actions required the use of
echo
which wasn't found with the restricted set of commands available on
PATH
. When I tried to add
echo
to tools, the issue persisted. Pants version 2.16.0 OS Ubuntu 20.04 Additional info This is coming from pants/src/python/pants/backend/shell/util_rules/shell_command.py Line 101 in </pantsbuild/pants/commit/6cbdd071dae6bb2d372322bff79ce7c4a8c872e2|6cbdd07> . Since
echo
is a builtin function, the request to add it to the
PATH
is filtered out. I was able to shim around this by making a simple script like
Copy code
#!/bin/bash

echo $@
and put that on
PATH
manually. pantsbuild/pants