I am using a Mac Mini running Lion (10.7.5) and zsh 4.3.12 (i386-apple-darwin11.0.1) with oh-my-zsh installed. In the Terminal.app I retrieve the UNIX timestamp using the following command
date +%s
It should print out a string of decimal digits - as the time of writing 1357294199, however it prints 27m1357294199. Notice the 27mprefix. It stays constant aka. does not change with time.
I already tried the following but to no avail
- Closed and reopened the Terminal.app
- Restarted my computer
Why does the date command print this extra prefix and how do I get rid of it?
Follow-ups (Note: For the sake of simplicity outputs will use a constant timestamp)
- The command
date '+%s'outputs27m'1357294199 - Command
/bin/echo Hello WorldprintsHello World type dategivesdate is /bin/date/bin/date +%sprints27m'1357294199
date '+%s? And what does/bin/echo Hello Worlddisplay? If they show the same problem, tryPS1= date +%s. – patrix♦ Jan 4 at 11:07type date? And can you try/bin/date +%s? – Matteo Jan 4 at 12:34