This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ITP] d 1.2.0


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

rlc wrote:

> Ehm.. how is this really different from:
> alias d='ls -l'
> ?

Quite a bit, really.  The canonical homepage does a good job of describing the differences, which is:
http://pages.xtn.net/~ecogburn/d.html

In addition, in Cygwin on Win2K, d /cygdrive/c/ will show pagefile.sys as mentioned in the ITP, unlike ls -l.

As an example, let me show you the difference between the output of ls -l and d (this may come out slightly distorted based on the email line breaks and GPG sig, but you should get the picture):

$ ls -l
total 793
lrwxrwxrwx    1 Yaakov   None          159 Aug  3 02:20 Desktop -> /usr/bin/%USE
RPROFILE%/.gnome-desktop
- -rw-r--r--    1 Yaakov   None       556606 Sep 13 23:10 abs-guide-2.1.tar.bz2
- -rwxr-xr-x    1 Yaakov   None          148 Sep 21 22:25 bzip2.sh
- -rw-r--r--+   1 Administ None         2373 Sep  9 22:03 cvid.pl
- -rw-r--r--    1 Yaakov   None        21673 Sep 17 11:25 cygcheck.030620
drwxrwxrwx+  14 Administ None         4096 Oct  1 03:23 devel
drwxrwxrwx+   4 Administ None            0 Sep 26 02:40 distro
drwxr-xr-x+   2 Yaakov   None            0 Sep 26 02:36 help2man
- -rw-r--r--    1 Yaakov   None       112377 Sep 30 05:26 lcab-1.0b10.tar.gz
- -rw-r--r--    1 Yaakov   None        41402 Sep 29 09:17 msnlib-3.2.tar.bz2
- -rw-r--r--    1 Yaakov   None        63555 Sep 27 21:30 pal-0.2.5.tgz
- -rw-r--r--    1 Yaakov   None            0 Sep 26 02:35 rpm.1
- -rw-r--r--    1 Yaakov   None         8437 Sep 15 02:11 tar.1

$ d

/usr/bin/%USERPROFILE%/:
rwxrwxrwx  Administrators:None    4K  Oct 01 07:23  devel/
rwxrwxrwx  Administrators:None     0  Sep 26 06:40  distro/
rwxr-xr-x          Yaakov:None     0  Sep 26 06:36  help2man/
rwxrwxrwx          Yaakov:None   159  Aug 03 06:20  Desktop->.gnome-desktop/
rw-r--r--          Yaakov:None  544K  Sep 14 03:10  abs-guide-2.1.tar.bz2
rwxr-xr-x          Yaakov:None   148  Sep 22 02:25  bzip2.sh
rw-r--r--  Administrators:None  2.3K  Sep 10 02:03  cvid.pl
rw-r--r--          Yaakov:None   21K  Sep 17 15:25  cygcheck.030620
rw-r--r--          Yaakov:None  110K  Sep 30 09:26  lcab-1.0b10.tar.gz
rw-r--r--          Yaakov:None   40K  Sep 29 13:17  msnlib-3.2.tar.bz2
rw-r--r--          Yaakov:None   62K  Sep 28 01:30  pal-0.2.5.tgz
rw-r--r--          Yaakov:None     0  Sep 26 06:35  rpm.1
rw-r--r--          Yaakov:None  8.2K  Sep 15 06:11  tar.1
9 regular files in directory, with a total size of 788K.

$

(In bash, the item Desktop->.gnome-desktop/ from d fits on the line, where by ls, there's a line break in the middle of %USERPROFILE%.  And yes, the summary line "9 regular files..." is produced by d.  The colorization is also better with d than with ls -l --color, but I can't show you that here. :-)

Anyway, I hope this answers your question.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32) - WinPT 0.7.96

iD8DBQE/eq3ZpiWmPGlmQSMRAgRuAJ94alAn61oxub3P8k8t/Smqkp/FWwCgiZxG
3vFf5xHOp9JEHpAr6f+lyDo=
=Fwwz
-----END PGP SIGNATURE-----


__________________________________________________________________
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]