Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"It is easier to fight for principles than to live up to them." -- Alfred Adler


computers / comp.os.vms / Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

SubjectAuthor
* Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Simon Clubley
+* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Dave Froble
|`* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Arne Vajhøj
| `- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Dave Froble
+- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Arne Vajhøj
+* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?John Wallace
|+* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Jan-Erik Söderholm
||+* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Arne Vajhøj
|||+* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Simon Clubley
||||`* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Jan-Erik Söderholm
|||| `* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Simon Clubley
||||  `* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Arne Vajhøj
||||   `* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Jan-Erik Söderholm
||||    `- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Simon Clubley
|||`- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Arne Vajhøj
||`- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Simon Clubley
|`- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Simon Clubley
+* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?dthi...@gmail.com
|+* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Jan-Erik Söderholm
||`* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Simon Clubley
|| `- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?VAXman-
|`* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Dave Froble
| +* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Chris Townley
| |`- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Dave Froble
| +- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Arne Vajhøj
| `* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?John Reagan
|  +* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Dave Froble
|  |`- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Simon Clubley
|  `* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Arne Vajhøj
|   `* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Dave Froble
|    `* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?John Reagan
|     `- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Dave Froble
`* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Phillip Helbig (undress to reply
 `* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Arne Vajhøj
  +* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Dave Froble
  |+- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Arne Vajhøj
  |`* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Simon Clubley
  | `* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Dave Froble
  |  +* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Steven Schweda
  |  |+- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?alanfe...@gmail.com
  |  |`- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?alanfe...@gmail.com
  |  +* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Jan-Erik Söderholm
  |  |+* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Steven Schweda
  |  ||+- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Jan-Erik Söderholm
  |  ||+* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Simon Clubley
  |  |||`* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?alanfe...@gmail.com
  |  ||| `* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Simon Clubley
  |  |||  `* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?John Reagan
  |  |||   `- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Simon Clubley
  |  ||`* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Phillip Helbig (undress to reply
  |  || +- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Simon Clubley
  |  || `- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?alanfe...@gmail.com
  |  |`- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?alanfe...@gmail.com
  |  `* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Arne Vajhøj
  |   `- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?alanfe...@gmail.com
  `* Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Bill Gunshannon
   `- Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?Arne Vajhøj

Pages:123
Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<sspht9$20h$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20258&group=comp.os.vms#20258

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Date: Tue, 25 Jan 2022 19:09:30 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <sspht9$20h$1@dont-email.me>
Injection-Date: Tue, 25 Jan 2022 19:09:30 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="3abf18a4dc5f1ea8768beae3cc6bd011";
logging-data="2065"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX191uzVu/7AJO6Km4bL67ORTCD+A4aB4ZlU="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:tLw1haPoP+9gTMGL5GK2Qpf4yOE=
 by: Simon Clubley - Tue, 25 Jan 2022 19:09 UTC

It would be nice to be able to see the output from a DIRECTORY command
optionally sorted by one of largest size, smallest size, oldest date,
newest date, etc.

Likewise, it would be nice to be able to optionally specify the sort
order in which filenames are returned by f$search().

Does anyone agree ?

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<sspnq3$cqv$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20265&group=comp.os.vms#20265

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Date: Tue, 25 Jan 2022 15:50:13 -0500
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <sspnq3$cqv$2@dont-email.me>
References: <sspht9$20h$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 25 Jan 2022 20:50:11 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="668dccba4bb456b64b67b6b4a516cfe2";
logging-data="13151"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/aHYokCqJXA88vsBjWM1c8oRCn8ACtZkA="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:HQvXLabDdfbzvgc+oFP6itvQ19U=
In-Reply-To: <sspht9$20h$1@dont-email.me>
 by: Dave Froble - Tue, 25 Jan 2022 20:50 UTC

On 1/25/2022 2:09 PM, Simon Clubley wrote:
> It would be nice to be able to see the output from a DIRECTORY command
> optionally sorted by one of largest size, smallest size, oldest date,
> newest date, etc.
>
> Likewise, it would be nice to be able to optionally specify the sort
> order in which filenames are returned by f$search().
>
> Does anyone agree ?
>
> Simon.
>

Already wrote it, in Basic. Want a copy?

--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef@tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<61f093b4$0$700$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20274&group=comp.os.vms#20274

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Tue, 25 Jan 2022 19:19:57 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Content-Language: en-US
Newsgroups: comp.os.vms
References: <sspht9$20h$1@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <sspht9$20h$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 23
Message-ID: <61f093b4$0$700$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 19808db0.news.sunsite.dk
X-Trace: 1643156404 news.sunsite.dk 700 arne@vajhoej.dk/68.9.63.232:59771
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Wed, 26 Jan 2022 00:19 UTC

On 1/25/2022 2:09 PM, Simon Clubley wrote:
> It would be nice to be able to see the output from a DIRECTORY command
> optionally sorted by one of largest size, smallest size, oldest date,
> newest date, etc.

It could be useful occasionally.

But I suspect that it could be some work for VSI to have DIRECTORY
read all and sort instead of just processing one by one.

I would call it a "nice to have" feature not a "must have" feature.

> Likewise, it would be nice to be able to optionally specify the sort
> order in which filenames are returned by f$search().

If you are scripting then just use something else than DCL
that can do what you want.

Python is a rather obvious choice for something like that.

Arne

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<61f093f5$0$700$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20275&group=comp.os.vms#20275

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Tue, 25 Jan 2022 19:21:08 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Content-Language: en-US
Newsgroups: comp.os.vms
References: <sspht9$20h$1@dont-email.me> <sspnq3$cqv$2@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <sspnq3$cqv$2@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 43
Message-ID: <61f093f5$0$700$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 19808db0.news.sunsite.dk
X-Trace: 1643156469 news.sunsite.dk 700 arne@vajhoej.dk/68.9.63.232:59771
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Wed, 26 Jan 2022 00:21 UTC

On 1/25/2022 3:50 PM, Dave Froble wrote:
> On 1/25/2022 2:09 PM, Simon Clubley wrote:
>> It would be nice to be able to see the output from a DIRECTORY command
>> optionally sorted by one of largest size, smallest size, oldest date,
>> newest date, etc.
>>
>> Likewise, it would be nice to be able to optionally specify the sort
>> order in which filenames are returned by f$search().
>>
>> Does anyone agree ?
>
> Already wrote it, in Basic.  Want a copy?

Python code:

from os import listdir, stat
from sys import argv, exit
from time import strftime, localtime

if len(argv) < 4:
print('Usage: python dir.py <dir> <orderby> <order>')
exit(1)
sel = lambda f : f[0]
if argv[2].lower() == 'name':
sel = lambda f : f[0]
if argv[2].lower() == 'size':
sel = lambda f : f[1].st_size
if argv[2].lower() == 'time':
sel = lambda f : f[1].st_mtime
rev = False
if argv[3].lower() == 'asc':
rev = False
if argv[3].lower() == 'desc':
rev = True

allf = [(f,stat(f)) for f in listdir(argv[1])]
allf.sort(reverse=rev, key=sel)
for f in allf:
print('%-32s %10d %s' % (f[0], f[1].st_size, strftime('%d-%b-%Y
%H:%M:%S', localtime(f[1].st_mtime))))

Arne

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<ssq6va$g7b$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20278&group=comp.os.vms#20278

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Date: Tue, 25 Jan 2022 20:08:59 -0500
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <ssq6va$g7b$1@dont-email.me>
References: <sspht9$20h$1@dont-email.me> <sspnq3$cqv$2@dont-email.me>
<61f093f5$0$700$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Jan 2022 01:08:58 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c54753586c9a02afd84be987073dfb92";
logging-data="16619"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gUNoMfA4jqrNYx8PvcAc+TbOlR8igofc="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:whCenRcV2w3JJzJQVDMnFNOM/3I=
In-Reply-To: <61f093f5$0$700$14726298@news.sunsite.dk>
 by: Dave Froble - Wed, 26 Jan 2022 01:08 UTC

On 1/25/2022 7:21 PM, Arne Vajhøj wrote:
> On 1/25/2022 3:50 PM, Dave Froble wrote:
>> On 1/25/2022 2:09 PM, Simon Clubley wrote:
>>> It would be nice to be able to see the output from a DIRECTORY command
>>> optionally sorted by one of largest size, smallest size, oldest date,
>>> newest date, etc.
>>>
>>> Likewise, it would be nice to be able to optionally specify the sort
>>> order in which filenames are returned by f$search().
>>>
>>> Does anyone agree ?
>>
>> Already wrote it, in Basic. Want a copy?
>
> Python code:
>
> from os import listdir, stat
> from sys import argv, exit
> from time import strftime, localtime
>
> if len(argv) < 4:
> print('Usage: python dir.py <dir> <orderby> <order>')
> exit(1)
> sel = lambda f : f[0]
> if argv[2].lower() == 'name':
> sel = lambda f : f[0]
> if argv[2].lower() == 'size':
> sel = lambda f : f[1].st_size
> if argv[2].lower() == 'time':
> sel = lambda f : f[1].st_mtime
> rev = False
> if argv[3].lower() == 'asc':
> rev = False
> if argv[3].lower() == 'desc':
> rev = True
>
> allf = [(f,stat(f)) for f in listdir(argv[1])]
> allf.sort(reverse=rev, key=sel)
> for f in allf:
> print('%-32s %10d %s' % (f[0], f[1].st_size, strftime('%d-%b-%Y %H:%M:%S',
> localtime(f[1].st_mtime))))
>
> Arne
>

It was much more fun, and educational, writing it in Basic ...

--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef@tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<9b438d05-c194-4fd3-9857-52c322885100n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20280&group=comp.os.vms#20280

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ad4:5aa2:: with SMTP id u2mr13123850qvg.67.1643201352542;
Wed, 26 Jan 2022 04:49:12 -0800 (PST)
X-Received: by 2002:a37:b142:: with SMTP id a63mr17616974qkf.704.1643201352386;
Wed, 26 Jan 2022 04:49:12 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Wed, 26 Jan 2022 04:49:12 -0800 (PST)
In-Reply-To: <sspht9$20h$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=31.125.75.57; posting-account=LoTgDQkAAADTKXJ587vuIocn0MiURp6p
NNTP-Posting-Host: 31.125.75.57
References: <sspht9$20h$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9b438d05-c194-4fd3-9857-52c322885100n@googlegroups.com>
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
From: johnwall...@yahoo.co.uk (John Wallace)
Injection-Date: Wed, 26 Jan 2022 12:49:12 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 28
 by: John Wallace - Wed, 26 Jan 2022 12:49 UTC

On Tuesday, 25 January 2022 at 19:09:32 UTC, Simon Clubley wrote:
> It would be nice to be able to see the output from a DIRECTORY command
> optionally sorted by one of largest size, smallest size, oldest date,
> newest date, etc.
>
> Likewise, it would be nice to be able to optionally specify the sort
> order in which filenames are returned by f$search().
>
> Does anyone agree ?
>
> Simon.
>
> --
> Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
> Walking destinations on a map are further away than they appear.

(ignoring f$search for now)

You mean like DIR on RT11 (single user PDP11 OS) has had since the 1990s or thereabouts?

..DIR /SORT:[sort_option]

Sort_options include DATE and SIZE.

You can also include a /REVERSE qualifier to reverse the default sort order.

See e.g. http://www.bitsavers.org/pdf/dec/pdp11/rt11/v5.6_Aug91/AA-PDU0A-TC_RT-11_Commands_Manual_Aug91.pdf

Somebody must have thought it was worth doing.

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<ssrhqa$2f9$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20281&group=comp.os.vms#20281

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Date: Wed, 26 Jan 2022 14:20:09 +0100
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <ssrhqa$2f9$1@dont-email.me>
References: <sspht9$20h$1@dont-email.me>
<9b438d05-c194-4fd3-9857-52c322885100n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Jan 2022 13:20:10 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="cd635e1a1fd0e0b9eb0604980979df90";
logging-data="2537"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18dgGge9PiH2kKQGjpHndxL"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Cancel-Lock: sha1:tleY0GQpcja4Mk3n3eQeZ9kmytk=
In-Reply-To: <9b438d05-c194-4fd3-9857-52c322885100n@googlegroups.com>
Content-Language: sv
 by: Jan-Erik Söderholm - Wed, 26 Jan 2022 13:20 UTC

Den 2022-01-26 kl. 13:49, skrev John Wallace:
> On Tuesday, 25 January 2022 at 19:09:32 UTC, Simon Clubley wrote:
>> It would be nice to be able to see the output from a DIRECTORY command
>> optionally sorted by one of largest size, smallest size, oldest date,
>> newest date, etc.
>>
>> Likewise, it would be nice to be able to optionally specify the sort
>> order in which filenames are returned by f$search().
>>
>> Does anyone agree ?
>>
>> Simon.
>>
>> --
>> Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
>> Walking destinations on a map are further away than they appear.
>
> (ignoring f$search for now)
>
> You mean like DIR on RT11 (single user PDP11 OS) has had since the 1990s or thereabouts?
>
> .DIR /SORT:[sort_option]
>
> Sort_options include DATE and SIZE.
>
> You can also include a /REVERSE qualifier to reverse the default sort order.
>
> See e.g. http://www.bitsavers.org/pdf/dec/pdp11/rt11/v5.6_Aug91/AA-PDU0A-TC_RT-11_Commands_Manual_Aug91.pdf
>
> Somebody must have thought it was worth doing.
>

Might need a new message:

%DIRECT-E-TOLARGETOSORT, directory to large for SORT qualifier

Since the file names can not be read in any other sorting order
then alphabetical, they need to be read into memory and sorted.

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<61f14ce8$0$695$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20283&group=comp.os.vms#20283

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Wed, 26 Jan 2022 08:30:08 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Content-Language: en-US
Newsgroups: comp.os.vms
References: <sspht9$20h$1@dont-email.me>
<9b438d05-c194-4fd3-9857-52c322885100n@googlegroups.com>
<ssrhqa$2f9$1@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <ssrhqa$2f9$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 44
Message-ID: <61f14ce8$0$695$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 5d7b5bae.news.sunsite.dk
X-Trace: 1643203816 news.sunsite.dk 695 arne@vajhoej.dk/68.9.63.232:49887
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Wed, 26 Jan 2022 13:30 UTC

On 1/26/2022 8:20 AM, Jan-Erik Söderholm wrote:
> Den 2022-01-26 kl. 13:49, skrev John Wallace:
>> On Tuesday, 25 January 2022 at 19:09:32 UTC, Simon Clubley wrote:
>>> It would be nice to be able to see the output from a DIRECTORY command
>>> optionally sorted by one of largest size, smallest size, oldest date,
>>> newest date, etc.
>>>
>>> Likewise, it would be nice to be able to optionally specify the sort
>>> order in which filenames are returned by f$search().
>>>
>>> Does anyone agree ?

>> (ignoring f$search for now)
>>
>> You mean like DIR on RT11 (single user PDP11 OS) has had since the
>> 1990s or thereabouts?
>>
>> .DIR /SORT:[sort_option]
>>
>> Sort_options include DATE and SIZE.
>>
>> You can also include a /REVERSE qualifier to reverse the default sort
>> order.
>>
>> See e.g.
>> http://www.bitsavers.org/pdf/dec/pdp11/rt11/v5.6_Aug91/AA-PDU0A-TC_RT-11_Commands_Manual_Aug91.pdf
>>
>> Somebody must have thought it was worth doing.
>
> Might need a new message:
>
> %DIRECT-E-TOLARGETOSORT, directory to large for SORT qualifier
>
> Since the file names can not be read in any other sorting order
> then alphabetical, they need to be read into memory and sorted.

True, but with modern HW sizes then it would be an extremely
rare case.

1 thousand entries of 256 bytes is only 256 KB.

1 million entries of 256 bytes is "only" 256 MB.

Arne

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<ssrjvd$jh2$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20285&group=comp.os.vms#20285

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Date: Wed, 26 Jan 2022 13:57:02 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <ssrjvd$jh2$2@dont-email.me>
References: <sspht9$20h$1@dont-email.me> <9b438d05-c194-4fd3-9857-52c322885100n@googlegroups.com>
Injection-Date: Wed, 26 Jan 2022 13:57:02 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="191d1445d77406cb2866cba7ac056c0c";
logging-data="20002"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DEmIt7hhEmXtJlODQtRlIUaJfSk0pR+k="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:jIhUPRT1y5fraJYbqzRUh67zsn0=
 by: Simon Clubley - Wed, 26 Jan 2022 13:57 UTC

On 2022-01-26, John Wallace <johnwallace4@yahoo.co.uk> wrote:
>
> You mean like DIR on RT11 (single user PDP11 OS) has had since the 1990s or thereabouts?
>
> .DIR /SORT:[sort_option]
>
> Sort_options include DATE and SIZE.
>
> You can also include a /REVERSE qualifier to reverse the default sort order.
>
> See e.g. http://www.bitsavers.org/pdf/dec/pdp11/rt11/v5.6_Aug91/AA-PDU0A-TC_RT-11_Commands_Manual_Aug91.pdf
>
> Somebody must have thought it was worth doing.

Interesting. I wasn't aware of that.

Thanks John. (And yes, I agree someone must have thought it was worth
adding that functionality).

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<ssrk5i$jh2$3@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20286&group=comp.os.vms#20286

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Date: Wed, 26 Jan 2022 14:00:18 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <ssrk5i$jh2$3@dont-email.me>
References: <sspht9$20h$1@dont-email.me> <9b438d05-c194-4fd3-9857-52c322885100n@googlegroups.com> <ssrhqa$2f9$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Jan 2022 14:00:18 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="191d1445d77406cb2866cba7ac056c0c";
logging-data="20002"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19LMKQERvtlILuRDF8gEvDgSERkTj+EnQ0="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:z+t5WO3q2Lm2taaBXSW9JCYALU8=
 by: Simon Clubley - Wed, 26 Jan 2022 14:00 UTC

On 2022-01-26, Jan-Erik Söderholm <jan-erik.soderholm@telia.com> wrote:
>
> Might need a new message:
>
> %DIRECT-E-TOLARGETOSORT, directory to large for SORT qualifier
>
> Since the file names can not be read in any other sorting order
> then alphabetical, they need to be read into memory and sorted.

We are no longer living in the world of 256Kbytes of system memory
and using RM02s for our disk drives. :-)

I do this just fine elsewhere without a problem...

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<ssrkbn$jh2$4@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20287&group=comp.os.vms#20287

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Date: Wed, 26 Jan 2022 14:03:35 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <ssrkbn$jh2$4@dont-email.me>
References: <sspht9$20h$1@dont-email.me> <9b438d05-c194-4fd3-9857-52c322885100n@googlegroups.com> <ssrhqa$2f9$1@dont-email.me> <61f14ce8$0$695$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Jan 2022 14:03:35 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="191d1445d77406cb2866cba7ac056c0c";
logging-data="20002"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Fa2eFx8fFnx8cZsDCt/CosMaHSlh59ug="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:ILqUPAbaspakalIAdoeFW3Y1SGY=
 by: Simon Clubley - Wed, 26 Jan 2022 14:03 UTC

On 2022-01-26, Arne Vajhøj <arne@vajhoej.dk> wrote:
>
> True, but with modern HW sizes then it would be an extremely
> rare case.
>
> 1 thousand entries of 256 bytes is only 256 KB.
>
> 1 million entries of 256 bytes is "only" 256 MB.
>

And that's only virtual memory which is needed. You don't even need
that much physical memory to be present to process a gigantic directory.

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<ssrmhg$2f9$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20288&group=comp.os.vms#20288

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Date: Wed, 26 Jan 2022 15:40:48 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <ssrmhg$2f9$2@dont-email.me>
References: <sspht9$20h$1@dont-email.me>
<9b438d05-c194-4fd3-9857-52c322885100n@googlegroups.com>
<ssrhqa$2f9$1@dont-email.me> <61f14ce8$0$695$14726298@news.sunsite.dk>
<ssrkbn$jh2$4@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Jan 2022 14:40:49 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="cd635e1a1fd0e0b9eb0604980979df90";
logging-data="2537"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bcsuuA2OXsN6BOaOoq1Cx"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Cancel-Lock: sha1:QQqZTH/4a5H2aBtYZE0UyyboMKE=
In-Reply-To: <ssrkbn$jh2$4@dont-email.me>
Content-Language: sv
 by: Jan-Erik Söderholm - Wed, 26 Jan 2022 14:40 UTC

Den 2022-01-26 kl. 15:03, skrev Simon Clubley:
> On 2022-01-26, Arne Vajhøj <arne@vajhoej.dk> wrote:
>>
>> True, but with modern HW sizes then it would be an extremely
>> rare case.
>>
>> 1 thousand entries of 256 bytes is only 256 KB.
>>
>> 1 million entries of 256 bytes is "only" 256 MB.
>>
>
> And that's only virtual memory which is needed. You don't even need
> that much physical memory to be present to process a gigantic directory.
>
> Simon.
>

How do you process this with reasonable performance if you do not
have the physical memory to store your filenames in and do the sorting?
And what kind of "virtual" memory are you talking about?

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<61f15fc9$0$692$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20289&group=comp.os.vms#20289

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Wed, 26 Jan 2022 09:50:39 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Content-Language: en-US
Newsgroups: comp.os.vms
References: <sspht9$20h$1@dont-email.me>
<9b438d05-c194-4fd3-9857-52c322885100n@googlegroups.com>
<ssrhqa$2f9$1@dont-email.me> <61f14ce8$0$695$14726298@news.sunsite.dk>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <61f14ce8$0$695$14726298@news.sunsite.dk>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 51
Message-ID: <61f15fc9$0$692$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: a88c54a8.news.sunsite.dk
X-Trace: 1643208649 news.sunsite.dk 692 arne@vajhoej.dk/68.9.63.232:52216
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Wed, 26 Jan 2022 14:50 UTC

On 1/26/2022 8:30 AM, Arne Vajhøj wrote:
> On 1/26/2022 8:20 AM, Jan-Erik Söderholm wrote:
>> Den 2022-01-26 kl. 13:49, skrev John Wallace:
>>> On Tuesday, 25 January 2022 at 19:09:32 UTC, Simon Clubley wrote:
>>>> It would be nice to be able to see the output from a DIRECTORY command
>>>> optionally sorted by one of largest size, smallest size, oldest date,
>>>> newest date, etc.
>>>>
>>>> Likewise, it would be nice to be able to optionally specify the sort
>>>> order in which filenames are returned by f$search().
>>>>
>>>> Does anyone agree ?
>
>>> (ignoring f$search for now)
>>>
>>> You mean like DIR on RT11 (single user PDP11 OS) has had since the
>>> 1990s or thereabouts?
>>>
>>> .DIR /SORT:[sort_option]
>>>
>>> Sort_options include DATE and SIZE.
>>>
>>> You can also include a /REVERSE qualifier to reverse the default sort
>>> order.
>>>
>>> See e.g.
>>> http://www.bitsavers.org/pdf/dec/pdp11/rt11/v5.6_Aug91/AA-PDU0A-TC_RT-11_Commands_Manual_Aug91.pdf
>>>
>>> Somebody must have thought it was worth doing.
>>
>> Might need a new message:
>>
>> %DIRECT-E-TOLARGETOSORT, directory to large for SORT qualifier
>>
>> Since the file names can not be read in any other sorting order
>> then alphabetical, they need to be read into memory and sorted.
>
> True, but with modern HW sizes then it would be an extremely
> rare case.
>
> 1 thousand entries of 256 bytes is only 256 KB.
>
> 1 million entries of 256 bytes is "only" 256 MB.

There are two different approaches:
- read into a linear data structure and sort that
- read into a tree
but it should not be that different.

Arne

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<sss529$qje$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20292&group=comp.os.vms#20292

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Date: Wed, 26 Jan 2022 18:48:42 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <sss529$qje$1@dont-email.me>
References: <sspht9$20h$1@dont-email.me> <9b438d05-c194-4fd3-9857-52c322885100n@googlegroups.com> <ssrhqa$2f9$1@dont-email.me> <61f14ce8$0$695$14726298@news.sunsite.dk> <ssrkbn$jh2$4@dont-email.me> <ssrmhg$2f9$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Jan 2022 18:48:42 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="191d1445d77406cb2866cba7ac056c0c";
logging-data="27246"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184p58vDmr1qD5lSn78njPVLvrSTP8Xg8Y="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:UdtsmVPn8jx5XBPP0fUCcz1Pzrc=
 by: Simon Clubley - Wed, 26 Jan 2022 18:48 UTC

On 2022-01-26, Jan-Erik Söderholm <jan-erik.soderholm@telia.com> wrote:
> Den 2022-01-26 kl. 15:03, skrev Simon Clubley:
>> On 2022-01-26, Arne Vajhøj <arne@vajhoej.dk> wrote:
>>>
>>> True, but with modern HW sizes then it would be an extremely
>>> rare case.
>>>
>>> 1 thousand entries of 256 bytes is only 256 KB.
>>>
>>> 1 million entries of 256 bytes is "only" 256 MB.
>>>
>>
>> And that's only virtual memory which is needed. You don't even need
>> that much physical memory to be present to process a gigantic directory.
>>
>
> How do you process this with reasonable performance if you do not
> have the physical memory to store your filenames in and do the sorting?

That depends on the OS paging algorithms and the sorting algorithm in use.

> And what kind of "virtual" memory are you talking about?

Normal process virtual memory. Only a small part of the virtual address
space of an active process needs to be backed by physical memory at any
one time, although ideally most of it would be.

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<61f1a0ec$0$705$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20293&group=comp.os.vms#20293

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Wed, 26 Jan 2022 14:28:37 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Content-Language: en-US
Newsgroups: comp.os.vms
References: <sspht9$20h$1@dont-email.me>
<9b438d05-c194-4fd3-9857-52c322885100n@googlegroups.com>
<ssrhqa$2f9$1@dont-email.me> <61f14ce8$0$695$14726298@news.sunsite.dk>
<ssrkbn$jh2$4@dont-email.me> <ssrmhg$2f9$2@dont-email.me>
<sss529$qje$1@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <sss529$qje$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 34
Message-ID: <61f1a0ec$0$705$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: bd28e4f7.news.sunsite.dk
X-Trace: 1643225324 news.sunsite.dk 705 arne@vajhoej.dk/68.9.63.232:65205
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Wed, 26 Jan 2022 19:28 UTC

On 1/26/2022 1:48 PM, Simon Clubley wrote:
> On 2022-01-26, Jan-Erik Söderholm <jan-erik.soderholm@telia.com> wrote:
>> Den 2022-01-26 kl. 15:03, skrev Simon Clubley:
>>> On 2022-01-26, Arne Vajhøj <arne@vajhoej.dk> wrote:
>>>>
>>>> True, but with modern HW sizes then it would be an extremely
>>>> rare case.
>>>>
>>>> 1 thousand entries of 256 bytes is only 256 KB.
>>>>
>>>> 1 million entries of 256 bytes is "only" 256 MB.
>>>>
>>>
>>> And that's only virtual memory which is needed. You don't even need
>>> that much physical memory to be present to process a gigantic directory.
>>>
>>
>> How do you process this with reasonable performance if you do not
>> have the physical memory to store your filenames in and do the sorting?
>
> That depends on the OS paging algorithms and the sorting algorithm in use.
>
>> And what kind of "virtual" memory are you talking about?
>
> Normal process virtual memory. Only a small part of the virtual address
> space of an active process needs to be backed by physical memory at any
> one time, although ideally most of it would be.

I don't think DIR causing hard PF's would provide a good UX.

But luckily I don't think it would be necessary.

Arne

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<sssin1$2f9$3@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20294&group=comp.os.vms#20294

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Date: Wed, 26 Jan 2022 23:41:36 +0100
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <sssin1$2f9$3@dont-email.me>
References: <sspht9$20h$1@dont-email.me>
<9b438d05-c194-4fd3-9857-52c322885100n@googlegroups.com>
<ssrhqa$2f9$1@dont-email.me> <61f14ce8$0$695$14726298@news.sunsite.dk>
<ssrkbn$jh2$4@dont-email.me> <ssrmhg$2f9$2@dont-email.me>
<sss529$qje$1@dont-email.me> <61f1a0ec$0$705$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Jan 2022 22:41:37 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="cd635e1a1fd0e0b9eb0604980979df90";
logging-data="2537"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19DKl4ckWf0CU4buOKQmoxP"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Cancel-Lock: sha1:e0VLaoeQqZFo/YzCBPVZsJd7c3g=
In-Reply-To: <61f1a0ec$0$705$14726298@news.sunsite.dk>
Content-Language: sv
 by: Jan-Erik Söderholm - Wed, 26 Jan 2022 22:41 UTC

Den 2022-01-26 kl. 20:28, skrev Arne Vajhøj:
> On 1/26/2022 1:48 PM, Simon Clubley wrote:
>> On 2022-01-26, Jan-Erik Söderholm <jan-erik.soderholm@telia.com> wrote:
>>> Den 2022-01-26 kl. 15:03, skrev Simon Clubley:
>>>> On 2022-01-26, Arne Vajhøj <arne@vajhoej.dk> wrote:
>>>>>
>>>>> True, but with modern HW sizes then it would be an extremely
>>>>> rare case.
>>>>>
>>>>> 1 thousand entries of 256 bytes is only 256 KB.
>>>>>
>>>>> 1 million entries of 256 bytes is "only" 256 MB.
>>>>>
>>>>
>>>> And that's only virtual memory which is needed. You don't even need
>>>> that much physical memory to be present to process a gigantic directory.
>>>>
>>>
>>> How do you process this with reasonable performance if you do not
>>> have the physical memory to store your filenames in and do the sorting?
>>
>> That depends on the OS paging algorithms and the sorting algorithm in use.
>>
>>> And what kind of "virtual" memory are you talking about?
>>
>> Normal process virtual memory. Only a small part of the virtual address
>> space of an active process needs to be backed by physical memory at any
>> one time, although ideally most of it would be.
>
> I don't think DIR causing hard PF's would provide a good UX.

That is why I asked what virmem has to do with anything here.

>
> But luckily I don't think it would be necessary.
>

No, probably not. DIR's are usually not that large on VMS.

> Arne
>

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<6e9c796e-9ccf-48c5-a699-d919b6d8d4f9n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20296&group=comp.os.vms#20296

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a37:44d:: with SMTP id 74mr1301446qke.328.1643251904877;
Wed, 26 Jan 2022 18:51:44 -0800 (PST)
X-Received: by 2002:ad4:5f49:: with SMTP id p9mr1587335qvg.110.1643251904748;
Wed, 26 Jan 2022 18:51:44 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Wed, 26 Jan 2022 18:51:44 -0800 (PST)
In-Reply-To: <sspht9$20h$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=184.59.100.14; posting-account=kZBiTgoAAADmAc60TO9Jm9WVg1drxCZ1
NNTP-Posting-Host: 184.59.100.14
References: <sspht9$20h$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6e9c796e-9ccf-48c5-a699-d919b6d8d4f9n@googlegroups.com>
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
From: dthitt...@gmail.com (dthi...@gmail.com)
Injection-Date: Thu, 27 Jan 2022 02:51:44 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 16
 by: dthi...@gmail.com - Thu, 27 Jan 2022 02:51 UTC

> It would be nice to be able to see the output from a DIRECTORY command
> optionally sorted by one of largest size, smallest size, oldest date,
> newest date, etc.

This sounds like a good opportunity for some community-contributed software (like the old DECUS Library). :-))
IIRC, there have been modified directory-like program submissions in the past.

Write a new program, DIRECTORY2 and a CLD file to do what you'd like the modified DIRECTORY to do, either using:
1) Existing DIRECTORY source code from VSI, in whatever language it's written in, and enhance it the way you want, OR
2) Create new program code in C, calling system routines to do the work.

Submit the new code to VSI.

They can either use it as part of their new DIRECTORY baseline, or it can be put into the community source program.

David

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<ssti88$186$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20297&group=comp.os.vms#20297

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Date: Thu, 27 Jan 2022 08:39:51 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <ssti88$186$1@dont-email.me>
References: <sspht9$20h$1@dont-email.me>
<6e9c796e-9ccf-48c5-a699-d919b6d8d4f9n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 27 Jan 2022 07:39:52 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2c87ce109ba769ee7c8b8e10ffe62657";
logging-data="1286"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+JwNwHg/E1jHAxiKYQYING"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Cancel-Lock: sha1:Cl6i0VjMcT3TbAY6pXTWAlaubM0=
In-Reply-To: <6e9c796e-9ccf-48c5-a699-d919b6d8d4f9n@googlegroups.com>
Content-Language: sv
 by: Jan-Erik Söderholm - Thu, 27 Jan 2022 07:39 UTC

Den 2022-01-27 kl. 03:51, skrev dthi...@gmail.com:
>
>> It would be nice to be able to see the output from a DIRECTORY command
>> optionally sorted by one of largest size, smallest size, oldest date,
>> newest date, etc.
>
> This sounds like a good opportunity for some community-contributed software (like the old DECUS Library). :-))
> IIRC, there have been modified directory-like program submissions in the past.
>
> Write a new program, DIRECTORY2 and a CLD file to do what you'd like the modified DIRECTORY to do, either using:

> 1) Existing DIRECTORY source code from VSI,

Is that even possible?

And besides, just as with some other suggested DCL enhancement
just a week or two ago, this might be of use for a very small
part of the users of VMS systems, and enhancing DCL is probably
very low, if at all, on the wish lists of any VSI customer.

The large amount of users of VMS systems and applications
never see any DCL environment.

Must be many way more important things in VMS to enhance...

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<sstlo7$me1$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20298&group=comp.os.vms#20298

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Date: Thu, 27 Jan 2022 03:39:33 -0500
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <sstlo7$me1$1@dont-email.me>
References: <sspht9$20h$1@dont-email.me>
<6e9c796e-9ccf-48c5-a699-d919b6d8d4f9n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 27 Jan 2022 08:39:35 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f9dc3b8f5e838e38900c43e85fc354f9";
logging-data="22977"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/heNIXfJ+b8+yXgbJKns40uxt6dFERoH0="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:0KXiszNmL22kjU3iTi/GRsXRr6g=
In-Reply-To: <6e9c796e-9ccf-48c5-a699-d919b6d8d4f9n@googlegroups.com>
 by: Dave Froble - Thu, 27 Jan 2022 08:39 UTC

On 1/26/2022 9:51 PM, dthi...@gmail.com wrote:
>
>> It would be nice to be able to see the output from a DIRECTORY command
>> optionally sorted by one of largest size, smallest size, oldest date,
>> newest date, etc.
>
> This sounds like a good opportunity for some community-contributed software (like the old DECUS Library). :-))
> IIRC, there have been modified directory-like program submissions in the past.

Nah, today's users want the vendor to do all the work ...

> Write a new program, DIRECTORY2 and a CLD file to do what you'd like the modified DIRECTORY to do, either using:
> 1) Existing DIRECTORY source code from VSI, in whatever language it's written in, and enhance it the way you want, OR
> 2) Create new program code in C, calling system routines to do the work.

Why C, when there are better languages?

> Submit the new code to VSI.
>
> They can either use it as part of their new DIRECTORY baseline, or it can be put into the community source program.

I have a subroutine that acquires file information. Limited at this time, but
easily modified to acquire additional information. Such could be a good
beginning to a more general utility. Available to all who ask.

--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef@tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<sstvgp$m74$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20299&group=comp.os.vms#20299

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: new...@cct-net.co.uk (Chris Townley)
Newsgroups: comp.os.vms
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Date: Thu, 27 Jan 2022 11:26:13 +0000
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <sstvgp$m74$1@dont-email.me>
References: <sspht9$20h$1@dont-email.me>
<6e9c796e-9ccf-48c5-a699-d919b6d8d4f9n@googlegroups.com>
<sstlo7$me1$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 27 Jan 2022 11:26:17 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="e3bc27eeaded28f45bfe398c3457a0ad";
logging-data="22756"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19CZRgcMLCLzGKrR5i9bH5IQ6b1E7KIxYE="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Cancel-Lock: sha1:OQvz8cyyYeEZ9Mhi9irtESuJNh0=
In-Reply-To: <sstlo7$me1$1@dont-email.me>
Content-Language: en-GB
 by: Chris Townley - Thu, 27 Jan 2022 11:26 UTC

On 27/01/2022 08:39, Dave Froble wrote:
> On 1/26/2022 9:51 PM, dthi...@gmail.com wrote:
>>
>>> It would be nice to be able to see the output from a DIRECTORY command
>>> optionally sorted by one of largest size, smallest size, oldest date,
>>> newest date, etc.
>>
>> This sounds like a good opportunity for some community-contributed
>> software (like the old DECUS Library).  :-))
>> IIRC, there have been modified directory-like program submissions in
>> the past.
>
> Nah, today's users want the vendor to do all the work ...
>
>> Write a new program, DIRECTORY2 and a CLD file to do what you'd like
>> the modified DIRECTORY to do, either using:
>>   1) Existing DIRECTORY source code from VSI, in whatever language
>> it's written in, and enhance it the way you want, OR
>>   2) Create new program code in C, calling system routines to do the
>> work.
>
> Why C, when there are better languages?
>
>> Submit the new code to VSI.
>>
>> They can either use it as part of their new DIRECTORY baseline, or it
>> can be put into the community source program.
>
> I have a subroutine that acquires file information.  Limited at this
> time, but easily modified to acquire additional information.  Such could
> be a good beginning to a more general utility.  Available to all who ask.
>
>

I would be interested to look at it

--
Chris

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<61f2a139$0$697$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20301&group=comp.os.vms#20301

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Thu, 27 Jan 2022 08:42:14 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.1
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Content-Language: en-US
Newsgroups: comp.os.vms
References: <sspht9$20h$1@dont-email.me>
<6e9c796e-9ccf-48c5-a699-d919b6d8d4f9n@googlegroups.com>
<sstlo7$me1$1@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <sstlo7$me1$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 48
Message-ID: <61f2a139$0$697$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: b5d4816a.news.sunsite.dk
X-Trace: 1643290937 news.sunsite.dk 697 arne@vajhoej.dk/68.9.63.232:50615
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Thu, 27 Jan 2022 13:42 UTC

On 1/27/2022 3:39 AM, Dave Froble wrote:
> On 1/26/2022 9:51 PM, dthi...@gmail.com wrote:
>>
>>> It would be nice to be able to see the output from a DIRECTORY command
>>> optionally sorted by one of largest size, smallest size, oldest date,
>>> newest date, etc.
>>
>> This sounds like a good opportunity for some community-contributed
>> software (like the old DECUS Library).  :-))
>> IIRC, there have been modified directory-like program submissions in
>> the past.
>
> Nah, today's users want the vendor to do all the work ...

Not todays users in general.

But sometimes it seems like VMS users do.

>> Write a new program, DIRECTORY2 and a CLD file to do what you'd like
>> the modified DIRECTORY to do, either using:
>>   1) Existing DIRECTORY source code from VSI, in whatever language
>> it's written in, and enhance it the way you want, OR
>>   2) Create new program code in C, calling system routines to do the
>> work.
>
> Why C, when there are better languages?

RMS calls work in any native language.

But most below 40 only know C and/or C++ in that category.

:-(

>> Submit the new code to VSI.
>>
>> They can either use it as part of their new DIRECTORY baseline, or it
>> can be put into the community source program.
>
> I have a subroutine that acquires file information.  Limited at this
> time, but easily modified to acquire additional information.  Such could
> be a good beginning to a more general utility.  Available to all who ask.

For getting info about a file then many languages comes with
functionality for that including C, Python, Java etc..

Arne

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<ssu8o0$lmu$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20304&group=comp.os.vms#20304

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Date: Thu, 27 Jan 2022 14:03:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <ssu8o0$lmu$1@dont-email.me>
References: <sspht9$20h$1@dont-email.me> <9b438d05-c194-4fd3-9857-52c322885100n@googlegroups.com> <ssrhqa$2f9$1@dont-email.me> <61f14ce8$0$695$14726298@news.sunsite.dk> <ssrkbn$jh2$4@dont-email.me> <ssrmhg$2f9$2@dont-email.me> <sss529$qje$1@dont-email.me> <61f1a0ec$0$705$14726298@news.sunsite.dk> <sssin1$2f9$3@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 27 Jan 2022 14:03:45 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="6efe1c51e98d71491c146a7950d7b294";
logging-data="22238"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18TvaqxNI+eyfxccmyipGaQt378irXID3Q="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:EgiutGgptuvkbdxqRn5JL8zolCY=
 by: Simon Clubley - Thu, 27 Jan 2022 14:03 UTC

On 2022-01-26, Jan-Erik Söderholm <jan-erik.soderholm@telia.com> wrote:
> Den 2022-01-26 kl. 20:28, skrev Arne Vajhøj:
>> On 1/26/2022 1:48 PM, Simon Clubley wrote:
>>>
>>> Normal process virtual memory. Only a small part of the virtual address
>>> space of an active process needs to be backed by physical memory at any
>>> one time, although ideally most of it would be.
>>
>> I don't think DIR causing hard PF's would provide a good UX.
>
> That is why I asked what virmem has to do with anything here.
>

I was addressing your comment about needing a new error message
for very large directories when trying to sort them.

That's not needed because what determines whether the sort runs to
completion is the amount of virtual memory available to a process,
not the amount of physical memory, and when you are talking about that,
then it's no different from the issues involved in running any other
program that might consume a lot of memory.

In practice, the directory would have to be a stupid large size for
this to be in any way a constraint.

>>
>> But luckily I don't think it would be necessary.
>>
>
> No, probably not. DIR's are usually not that large on VMS.
>

Agreed. I've sorted large directories on Linux and _never_ had a problem.

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<ssu8sq$lmu$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20305&group=comp.os.vms#20305

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Date: Thu, 27 Jan 2022 14:06:18 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <ssu8sq$lmu$2@dont-email.me>
References: <sspht9$20h$1@dont-email.me> <6e9c796e-9ccf-48c5-a699-d919b6d8d4f9n@googlegroups.com> <ssti88$186$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 27 Jan 2022 14:06:18 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="6efe1c51e98d71491c146a7950d7b294";
logging-data="22238"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+K/xfPUD7za0N32jyjTIgOd8e7J237osg="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:/7/JAWs/AgR0Dy2YTU6Mat9nmPo=
 by: Simon Clubley - Thu, 27 Jan 2022 14:06 UTC

On 2022-01-27, Jan-Erik Söderholm <jan-erik.soderholm@telia.com> wrote:
> Den 2022-01-27 kl. 03:51, skrev dthi...@gmail.com:
>>
>>> It would be nice to be able to see the output from a DIRECTORY command
>>> optionally sorted by one of largest size, smallest size, oldest date,
>>> newest date, etc.
>>
>> This sounds like a good opportunity for some community-contributed software (like the old DECUS Library). :-))
>> IIRC, there have been modified directory-like program submissions in the past.
>>
>> Write a new program, DIRECTORY2 and a CLD file to do what you'd like the modified DIRECTORY to do, either using:
>
>> 1) Existing DIRECTORY source code from VSI,
>
> Is that even possible?
>

No.

And even if the answer was yes, then there are also other issues
like access to the regression testing suite VSI uses and copyright
assignment of your code to VSI if they want to use your code
directly within VMS itself.

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<00B6F6F0.C9C5897B@SendSpamHere.ORG>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20307&group=comp.os.vms#20307

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!rocksolid2!i2pn.org!aioe.org!pr9o9uw/KLhPSFYv2ok3sg.user.46.165.242.75.POSTED!not-for-mail
From: VAXm...@SendSpamHere.ORG
Newsgroups: comp.os.vms
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
Date: Thu, 27 Jan 2022 15:26:19 GMT
Organization: c.2022 Brian Schenkenberger. Prior employers of copyright holder and their agents must first obtain written permission to copy this posting.
Message-ID: <00B6F6F0.C9C5897B@SendSpamHere.ORG>
References: <sspht9$20h$1@dont-email.me> <6e9c796e-9ccf-48c5-a699-d919b6d8d4f9n@googlegroups.com> <ssti88$186$1@dont-email.me> <ssu8sq$lmu$2@dont-email.me>
Reply-To: VAXman- @SendSpamHere.ORG
Injection-Info: gioia.aioe.org; logging-data="8009"; posting-host="pr9o9uw/KLhPSFYv2ok3sg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: VAXm...@SendSpamHere.ORG - Thu, 27 Jan 2022 15:26 UTC

In article <ssu8sq$lmu$2@dont-email.me>, Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> writes:
>On 2022-01-27, Jan-Erik S�derholm <jan-erik.soderholm@telia.com> wrote:
>> Den 2022-01-27 kl. 03:51, skrev dthi...@gmail.com:
>>>
>>>> It would be nice to be able to see the output from a DIRECTORY command
>>>> optionally sorted by one of largest size, smallest size, oldest date,
>>>> newest date, etc.
>>>
>>> This sounds like a good opportunity for some community-contributed software (like the old DECUS Library). :-))
>>> IIRC, there have been modified directory-like program submissions in the past.
>>>
>>> Write a new program, DIRECTORY2 and a CLD file to do what you'd like the modified DIRECTORY to do, either using:
>>
>>> 1) Existing DIRECTORY source code from VSI,
>>
>> Is that even possible?
>>
>
>No.
>
>And even if the answer was yes, then there are also other issues
>like access to the regression testing suite VSI uses and copyright
>assignment of your code to VSI if they want to use your code
>directly within VMS itself.

Seeing as how you're such a proponent of 'ix', where one doesn't go to the
toilet without a pipe, why not this?

$ PIPE DIRECTORY/SIZE/WIDTH=(FILENAME:60) | SORT/KEY=(POSITION:60,SIZE=12) SYS$PIPE SYS$OUTPUT

--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG

I speak to machines with the voice of humanity.

Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

<e504131b-f9dd-4df7-a77e-c753203bac5en@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20309&group=comp.os.vms#20309

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:6214:1d25:: with SMTP id f5mr3662080qvd.71.1643300758085;
Thu, 27 Jan 2022 08:25:58 -0800 (PST)
X-Received: by 2002:a05:622a:1cc7:: with SMTP id bc7mr3349613qtb.418.1643300757882;
Thu, 27 Jan 2022 08:25:57 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 27 Jan 2022 08:25:57 -0800 (PST)
In-Reply-To: <sstlo7$me1$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=73.60.222.222; posting-account=M3IgSwoAAADJd6EnOmsrCCfB6_OyTOkv
NNTP-Posting-Host: 73.60.222.222
References: <sspht9$20h$1@dont-email.me> <6e9c796e-9ccf-48c5-a699-d919b6d8d4f9n@googlegroups.com>
<sstlo7$me1$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e504131b-f9dd-4df7-a77e-c753203bac5en@googlegroups.com>
Subject: Re: Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
From: xyzzy1...@gmail.com (John Reagan)
Injection-Date: Thu, 27 Jan 2022 16:25:58 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 25
 by: John Reagan - Thu, 27 Jan 2022 16:25 UTC

On Thursday, January 27, 2022 at 3:39:38 AM UTC-5, Dave Froble wrote:
> On 1/26/2022 9:51 PM, dthi...@gmail.com wrote:
> >
> >> It would be nice to be able to see the output from a DIRECTORY command
> >> optionally sorted by one of largest size, smallest size, oldest date,
> >> newest date, etc.
> >
> > This sounds like a good opportunity for some community-contributed software (like the old DECUS Library). :-))
> > IIRC, there have been modified directory-like program submissions in the past.
> Nah, today's users want the vendor to do all the work ...
> > Write a new program, DIRECTORY2 and a CLD file to do what you'd like the modified DIRECTORY to do, either using:
> > 1) Existing DIRECTORY source code from VSI, in whatever language it's written in, and enhance it the way you want, OR
> > 2) Create new program code in C, calling system routines to do the work..
> Why C, when there are better languages?

If you are about to use the B-word, better is relative. And if there was such an important tool in BASIC, would have needed Macro, C, BLISS AND BASIC compilers (and their nightmare RTLs) in the development path. I don't want another critical, proprietary tool in the system.

Pages:123
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor