Difference in Windows and Linux with PARSE
Posted: Fri Sep 03, 2004 8:27 pm
Hi,
Using newLisp 8.1.5, also occuring with 8.1.4. The following line works OK in Windows:
> (parse (date (apply date-value (now))) " ")
("Fri" "Sep" "3" "22:21:36" "2004")
So this is OK. An 'nth 3' delivers the time. In Linux however, the result is different:
> (parse (date (apply date-value (now))) " ")
("Fri" "Sep" "" "3" "22:21:36" "2004")
I have to use an 'nth 4' to get the time here. An extra list entity is returned, an entity which is empty: "".
How come this difference occurs?
Peter
Using newLisp 8.1.5, also occuring with 8.1.4. The following line works OK in Windows:
> (parse (date (apply date-value (now))) " ")
("Fri" "Sep" "3" "22:21:36" "2004")
So this is OK. An 'nth 3' delivers the time. In Linux however, the result is different:
> (parse (date (apply date-value (now))) " ")
("Fri" "Sep" "" "3" "22:21:36" "2004")
I have to use an 'nth 4' to get the time here. An extra list entity is returned, an entity which is empty: "".
How come this difference occurs?
Peter