On Tue, Sep 10, 2013 at 11:35 AM, Balasubramaniam Natarajan < bala150...@gmail.com> wrote:
> Hi > > How do I echo the current command which I typed in bash ? I know that our > current command goes and sit's in the value of "$0" However when I try > putting this inside .bashrc it does not give me correct results. > > $ fc -ln 0 gives what I typed in previously not the current command. > > For example: > > $ ls > The current cmd you typed is: ls > . .. Pictures Document > $ clear > The current cmd you typed is: clear > $ who > The current cmd you typed is: who > bla bla bla ....... > I don't think so that there is any such way to get this. BTW you can alter the 'history' command according to your need (that's another way around). If there is any way to do this then I am eager to execute that. -- *Regards, Sahil ModGill* _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc ILUGC Mailing List Guidelines: http://ilugc.in/mailinglist-guidelines