https://bugzilla.novell.com/show_bug.cgi?id=354629
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=354629#c1
Dr. Werner Fink changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schwab@novell.com
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Dr. Werner Fink 2008-01-22 10:16:27 MST ---
No, the result is correct, as you may read from the manual
page of the ksh a leading zero declares a number as an octal
number, therefore octal 017 is 15 in decimal system.
You should use something like:
#!/bin/ksh
date "+%-j"
typeset -i julian=$(date +"%-j")
echo $julian
to get the correct result:
/suse/werner> ksh bug_smb
22
22
for current day of the year (which is Tue Jan 22 18:15:51 CET 2008)
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.