Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1720

Can PRE_EXEC refer to the about_to_be_executed command line?

$
0
0
I got the bright idea of using the PRE_EXEC alias to replace the current command line with itself followed by a timestamp, something like this (with some paraphrasing)

Code:
 alias pre_exec `echo cursor_up clear_to_EOL %cmdline2 (%_date %_time)`

That was disastrous. TCC went into a variable loop (I'm guessing) using 100% of one processor. To make matters worse, since I use global aliases, all subsequent TCCs did the same thing. With several such TCCs running, and my computer's fans...

Read more

Viewing all articles
Browse latest Browse all 1720

Trending Articles