Replies: 3 comments 2 replies
-
First of all, tervetuola/welcome! I'm glad someone is trying to work on this as no one has had time or motivation so far. See also #182 for more breakage; that issue would be a good place to discuss and test possible fixes. You asked how to get those ksh/src/lib/libast/include/debug.h Lines 38 to 41 in 9c037b0 DEBUG or _BLD_DEBUG being defined. So you need to add either -DDEBUG or -D_BLD_DEBUG to CCFLAGS .
Then, whether it shows a message is also dependent on
Actually, I think there's a mistake in that: Anyhow, in summary: compiling with either |
Beta Was this translation helpful? Give feedback.
-
Well, would you look at that... passing Line 14 in 9c037b0 -debug-symbols MAM variable is set by mamake if the -G /--debug-symbols option was passed to it).
Anyway, the following will work to debug tmxdate.c:
|
Beta Was this translation helpful? Give feedback.
-
I was asking for debug technic in my first post, and there are good start here :) |
Beta Was this translation helpful? Give feedback.
-
Source code include message function calls, how I can setup show that I get message() output? And also debug() output?
I have compiled ksh using to get debug version of ksh
bin/package make CCFLAGS="-O -g" debug=1
I'm just looking libast/tm/tmxdate.c to find bug. the message output helps to read parser.
I have not found full manual with some examples when using excellent printf '%T'.
There is bug
** if you split: take 10 and 10 and 5 months, you got correct answer
I have tested cron format, nice:
All reserved words (supported) in file libast/tm/tmdata.c
I found from source that you can use also sort format like 2M , 10H, ... 2Y, 2h and so on works also. Result is not same as "2 month".
** I have tried -, ago,past ... but always I got 2022-09-06 , not 2022-05-06
Beta Was this translation helpful? Give feedback.
All reactions