dyne / tomb

the Crypto Undertaker
https://dyne.org/software/tomb
GNU General Public License v3.0
1.32k stars 150 forks source link

reimplementation of cat fails to work for some inputs #426

Closed eliotb closed 2 years ago

eliotb commented 2 years ago

I'm running tomb from git head, on ubuntu 20.04, bash shell, with zsh also installed.

The output of tomb ps is incorrect. It seems that the invocations of _cat in list_processes return nothing. puid and pcmd are empty and powner is list of all accounts.

If I replace _cat with system cat by defining _cat() { cat ${1} } then tomb ps works correctly.

I don't know zsh, so not sure why this is happening. Something to do with mapfile accessing a proc entry? - I don't really know.

jaromil commented 2 years ago

thanks BTW, I simply started using cat