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

Re: Printing the date just before execution of commands in bash



On Thu, Oct 12, 2006 at 09:30:58PM -0700, Marc Shapiro wrote:
> 
> I will agree that, if you only have a few commands that you regularly 
> want timed, then an alias is probably the easiest way to do it.
> 
> I have the following alias: alias pr='pr -F -l 59', and it works just 
> fine, no recursion at all.  I just checked 'man bash' and this is what 
> it says:
> 
Quite right.  I had mistakenly setup that little "bomb" in a shell
script, like this:

#!/bin/bash
LANG= exec mutt

Of course, so I would not need to remember to type something, I
helpfully named the script and place it in ~/bin, which was ahead of
/usr/bin in my PATH :-)

Regards,

-Roberto

-- 
Roberto C. Sanchez
http://people.connexer.com/~roberto
http://www.connexer.com

Attachment: signature.asc
Description: Digital signature


Reply to: