6
1
I would like to be able to define arbitrary modifications to command lines that happen before bash sees them at all, ie, before expansion of any kind. Is this possible?
I'm not trying to solve one particular problem, I'm really just curious if it is possible to obtain exactly this functionality without writing my own shell.
What kind of modifications? If you just want shortcuts to things, use
alias
. – jtbandes – 2010-07-24T21:13:51.023ockquote>
"before expansion of any kind."
I would like to do complete rewriting of entire command lines. Aliases and shell functions are the limitation I am trying to overcome. – Personman – 2010-07-24T21:28:47.577
related: http://superuser.com/questions/175799/does-bash-have-a-hook-that-is-run-before-executing-a-command
– poindexter – 2012-04-30T14:10:57.723