If I am not wrong,
there seems to be an undocumented environment variable “strings” - or that variable gets replaced by some script ?
however, I use in some script something like :
my_var="$(/usr/bin/strings "${HOME}/some_file.txt" | grep "test")" # seems not to work ....
my_var="$(strings "${HOME}/some_file.txt" | grep "test")" # seems not to work ....
my_var="$(cat "${HOME}/some_file.txt" | /usr/bin/strings | grep "test")" # seems not to work ....
my_var="$(cat "${HOME}/some_file.txt" | '/usr/bin/strings' | grep "test")" # seems not to work ....
/usr/bin/strings "${HOME}/some_file.txt" # gives some unrelated output of build internals
I set up xenial in one of my VMs to make sure it is nothing common.
What I do wrong ?