problem with unix date util running in emacs shell

here's a oddity.

on Cygwin bash on Windows Vista, i can get date like this:

    $ date
    2010-11-30  4:40:48 AM PST
    
    xah@xah-PC ~
    $ date +%s
    1291120855

but in emacs “shell”, running the same date command, i get this:

    c:\Users\xah\web\xahlee_org\comp>which date
    which date
    /usr/bin/date
    
    c:\Users\xah\web\xahlee_org\comp>date
    date
    The current date is: 2010-11-30 
    Enter the new date: (yy-mm-dd) 
    
    
    c:\Users\xah\web\xahlee_org\comp>date +%s
    date +%s
    The system cannot accept the date entered.
    Enter the new date: (yy-mm-dd) 

any idea what's going on?

problem with unix date util running in emacs shell
===


here's a oddity.

on Cygwin bash on Windows Vista, i can get date like this:

    $ date
    2010-11-30  4:40:48 AM PST
    
    xah@xah-PC ~
    $ date +%s
    1291120855

but in emacs “shell”, running the same date command, i get this:

    c:\Users\xah\web\xahlee_org\comp>which date
    which date
    /usr/bin/date
    
    c:\Users\xah\web\xahlee_org\comp>date
    date
    The current date is: 2010-11-30 
    Enter the new date: (yy-mm-dd) 
    
    
    c:\Users\xah\web\xahlee_org\comp>date +%s
    date +%s
    The system cannot accept the date entered.
    Enter the new date: (yy-mm-dd) 

any idea what's going on?
