help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Eshell: Globbing and permissions


From: Memnon Anon
Subject: Eshell: Globbing and permissions
Date: Fri, 24 Jun 2011 18:45:02 +0000 (UTC)

Hm, I don't get it.

Shouldn't "echo *(w)" give the same result as does 
          "echo *('file-writable-p)"?

,----[ eshell ]
| ~/tmp/test $ ls -alh
| total 24k
| drwxr-xr-x   2 me         me   4.0k Jun 24 19:18 .
| drwxr-----   9 me         me    20k Jun 24 19:17 ..
| -rw-r--r--   1 me         me      5 Jun 24 19:17 a.txt
| -r--r-----   1 me         me      5 Jun 24 19:18 b.txt
| ~/tmp/test $ echo *('file-writable-p)
| ("a.txt")
| ~/tmp/test $ echo *(w)
| ("a.txt" "b.txt")
| ~/tmp/test $ echo *(W)
| ("a.txt" "b.txt")
| ~/tmp/test $ ls *(w)
| a.txt  b.txt
| ~/tmp/test $ ls *(W)
| a.txt  b.txt
| ~/tmp/test $ ls *('file-writable-p)
| a.txt
`----

I did some googleing, but examples of eshell usage are ... rare.

And 
,----[ (info "(eshell)Globbing") ]
| 
| 4.4 Globbing
| ============
| 
`----
...

Memnon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]