Here's the python equivalent (I call it python-x):I didn't know bash -x could be dangerous ( Edit: but it makes sense - I just didn't think it through ).
Code:
#!/bin/bashfor i in /usr/lib/python3*; do if [ -e $i/trace.py ]; thenpython3 $i/trace.py --trace --ignore-dir $i "$@"exit 0 fidoneecho "Could not find /usr/lib/python*/trace.py"exit 1
Statistics: Posted by lindi — 2024-02-25 13:00 — Replies 5 — Views 89