Stdout from arg group of Debug trap redefines PS4

2023-06-25 Thread Wiley Young
Hi, [liveuser@localhost-live scf]$ reset; ./findscan rm_stale foo bar -ab /tmp |& cat -n Beginning at line 217 of `cat`s numbering of this xtrace output log, the read prompt from the Debug trap prints some info for a few lines, and then one line before #218, the PS4 prompt is displayed again, if

Enable compgen even when programmable completions are not available?

2023-06-25 Thread Eli Schwartz
compgen is a useful builtin for inspecting information about the shell context e.g. in scripts -- a good example of this is compgen -A function or compgen -A variable. But it's not always available depending on how bash is built, which results in people lacking confidence that it can / should be u