bash trick - prefixing a command?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I want to do some shell trickery so that when a user enters a command like:

ls -l

the command is forwarded to another program as an argument. That is, what actually gets executed is:

myprog "ls -l"

Is there a way to do that? Basically I want to use bash as transparent front end for another program (actually a command parser for some custom hardware), while keeping the handy editing and history abilities of bash.

Any suggestions (other than writing my own stripped down and customized shell, which I know is an option)?


- Mike


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux