Closed iandunn closed 6 months ago
I have an alias for date in my ~/.bash_aliases file:
date
~/.bash_aliases
alias date='gdate "+%b %e %Y %l:%M:%S %P"'
When I run z, I get an error:
z
> z deve gdate: extra operand ‘+%s’ Try 'gdate --help' for more information.
That's because z uses the aliased date, and ends up trying to run gdate "+%b %e %Y %l:%M:%S %P" +%s instead of date +%s
gdate "+%b %e %Y %l:%M:%S %P" +%s
date +%s
This PR updates the references to date to use command, so that it bypasses the alias and executes /bin/date directly.
command
/bin/date
Related #264
I have an alias for
date
in my~/.bash_aliases
file:When I run
z
, I get an error:That's because
z
uses the aliaseddate
, and ends up trying to rungdate "+%b %e %Y %l:%M:%S %P" +%s
instead ofdate +%s
This PR updates the references to
date
to usecommand
, so that it bypasses the alias and executes/bin/date
directly.