[vox-tech] date question
Micah Cowan
micah at cowan.name
Thu Sep 28 09:57:19 PDT 2006
On Thu, 2006-09-28 at 11:31 -0400, Peter Jay Salzman wrote:
> Oh, wait. I think I know. I already have date aliased to
>
> $ alias | grep date
> alias date='date +'\''%a %b %d %l:%M %p'\'''
>
> So I'll bet if I do this, it'll work:
>
> $ date +%Y
> date: extra operand `+%Y'
> Try `date --help' for more information.
> $ \date +%Y
> 2006
>
> And when I use a fully qualified path, the shell doesn't use the alias. OK.
> Mystery solved. Thanks Bill!
In the future, you may find "type" more useful than which, which will
also reveal when a command you're running is a builtin, keyword (such as
the "time" command in bash), or (as in your case) an alias.
-Micah
----------------------------------
Barracuda Networks makes the best spam firewalls and web filters. www.barracudanetworks.com
More information about the vox-tech
mailing list