From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,32c594a83e2d8db X-Google-Attributes: gidf7344,public X-Google-Thread: 114b0c,32c594a83e2d8db X-Google-Attributes: gid114b0c,public X-Google-Thread: 1164f8,32c594a83e2d8db X-Google-Attributes: gid1164f8,public X-Google-Thread: 111308,32c594a83e2d8db X-Google-Attributes: gid111308,public X-Google-ArrivalTime: 1993-10-08 07:18:54 PST Xref: gmd.de comp.client-server:1462 comp.os.vms:32162 comp.sys.dec:10681 comp.sys.hp:25873 Newsgroups: comp.client-server,comp.os.vms,comp.sys.dec,comp.sys.hp Path: gmd.de!xlink.net!howland.reston.ans.net!pipex!uknet!mcsun!dxcern!lishka From: lishka@dxcern.cern.ch (Christopher Lishka) Subject: Re: Move from VMS to Open VMS or to HP-UX? Advice sought! Message-ID: <1993Oct8.141112.25592@dxcern.cern.ch> Organization: CERN European Lab for Particle Physics References: <1993Sep23.161016.12926@vms.eurokom.ie> <1993Oct6.175645.12964@vms.eurokom.ie> Date: Fri, 8 Oct 1993 14:11:12 GMT In pawlak@zeubac.desy.de (Jerzy Michal Pawlak) writes: [Regarding ls -d in Unix:] >OK, so now, that we agreed that it is always -d can anybody >tell me WHY do I have to add -d to get the information I >need? After all, ls gives me information about a file and a >directory is a file? Don't you think it's a little >inconsistent? Demanding that for some files you add -d and >for others not? Geez, aren't we getting a little petty? "ls", when acting on a directory, defaults to listing the directory's >contents<. Just like "DIR" in VMS, when a directory is specified with bracket notation (i.e. [.mydir]). But if you want to list the attributes for a Unix directory, you need to tell "ls" to do so with the "-d" option. In VMS you have to actually list the directory >file< (i.e. [.topdir]mydir.dir). VMS solves the problem by having a seperate syntax for specifying directories and files, whereas Unix treats files and directories in the same way for syntactic purposes. If we want to nag about VMS: can anybody tell my WHY I have to specificy the directory >file< when doing operations on it (like changing protection, renaming it, etc.)? Yet when I want to look inside a directory on VMS, I have to use the bracket notation (e.g. [DIR])? Geez, in Unix I don't have to use different directory syntax notations ;-) For the humor-impaired, that previous paragraph was a joke. But it also points out something that is confusing in VMS (I know, because I have fielded many questions on this point). The "-d" option of "ls" is also somewhat confusing (I know, because I have fielded questions on this point as well). Unix and VMS have different strengths and weaknesses. Neither one is better than the other ... they are just different OS's. -- It takes love over gold, Christopher Lishka And mind over matter, PPE Division, CERN To do what you do that you must. lishka@dxcern.cern.ch -- Dire Straits vxaluw::lishka