unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Bug in ange-ftp parsing of ls output
@ 2005-10-19 14:08 Kim F. Storm
  2005-10-20 20:11 ` Michael Albinus
  0 siblings, 1 reply; 11+ messages in thread
From: Kim F. Storm @ 2005-10-19 14:08 UTC (permalink / raw)



In CVS emacs:

I'm using redhat 9.0, whose ftp server identifies itself as
 FTP server (Version 5.60) ready.

I've digged out the following line from the response to an
ls -al command:

-rw-------    1 kfs             0 May 27  2003 .autorun.lck

Now, if I position the cursor at the beginning of that line
and enter

M-: (ange-ftp-parse-filename) RET

it returns:

"27  2003 .autorun.lck"

If I do
M-: (re-search-forward ange-ftp-date-regexp nil t) RET
at that position, point moves to the "M" in May.

This is obviously wrong, but the ange-ftp-date-regexp is beyond me:

"[0-9] \\(\\(\\([A-Za-z]\\|[^\0-\x7f]\\)\\([A-Za-z]\\|[^\0-\x7f]\\)+[.]?,? * [ 0-3][0-9][.]?\\|[ 0-3][0-9][.]? \\([A-Za-z]\\|[^\0-\x7f]\\)\\([A-Za-z]\\|[^\0-\x7f]\\)+[.]?,? *\\)\\|[ 0-1][0-9][^\0-\x7f] [ 0-3][0-9][.]?[^\0-\x7f]\\) "


If I change the line to

-rw-------    1 kfs            10 May 27  2003 .autorun.lck

it still fails, but this line works:

-rw-------    1 kfs           100 May 27  2003 .autorun.lck

What's going on?


-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-01-08 14:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-19 14:08 Bug in ange-ftp parsing of ls output Kim F. Storm
2005-10-20 20:11 ` Michael Albinus
2005-10-21  3:08   ` Stefan Monnier
2005-10-21  5:49     ` Michael Albinus
2005-10-21  6:07       ` Stefan Monnier
2005-10-21 22:19       ` Richard M. Stallman
2005-10-23 12:37         ` Michael Albinus
2005-10-24  1:00           ` Richard M. Stallman
2005-10-25  6:07             ` Michael Albinus
2006-01-07  7:03         ` Daniel Brockman
2006-01-08 14:47           ` Richard M. Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).