Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

This login session: $13.76, but for you $11.88.


computers / comp.os.vms / Re: Unix and DCL shells

SubjectAuthor
* Unix and DCL shellsSimon Clubley
+* Re: Unix and DCL shellsArne Vajhøj
|`* Re: Unix and DCL shellsmjos_examine
| `* Re: Unix and DCL shellschrisq
|  +* Re: Unix and DCL shellsDan Cross
|  |`* Re: Unix and DCL shellsbill
|  | `* Re: Unix and DCL shellsDan Cross
|  |  +* Re: Unix and DCL shellsScott Dorsey
|  |  |`* Re: Unix and DCL shellsDan Cross
|  |  | `* Re: Unix and DCL shellsBob Eager
|  |  |  `* Re: Unix and DCL shellsLawrence D'Oliveiro
|  |  |   `* Re: Unix and DCL shellsBob Eager
|  |  |    `* Re: Unix and DCL shellsLawrence D'Oliveiro
|  |  |     `* Re: Unix and DCL shellsBob Eager
|  |  |      `* Re: Unix and DCL shellsLawrence D'Oliveiro
|  |  |       `* Re: Unix and DCL shellsBob Eager
|  |  |        +* Re: Unix and DCL shellsArne Vajhøj
|  |  |        |`* Re: Unix and DCL shellsBob Eager
|  |  |        | `* Re: Unix and DCL shellsDan Cross
|  |  |        |  `* Re: Unix and DCL shellsBob Eager
|  |  |        |   `* Re: Unix and DCL shellsLawrence D'Oliveiro
|  |  |        |    `* Re: Unix and DCL shellsBob Eager
|  |  |        |     `- Re: Unix and DCL shellsLawrence D'Oliveiro
|  |  |        `- Re: Unix and DCL shellsLawrence D'Oliveiro
|  |  `* Re: Unix and DCL shellsbill
|  |   `- Re: Unix and DCL shellsDan Cross
|  `- Re: Unix and DCL shellsbill
+* Re: Unix and DCL shellsDave Froble
|`* Re: Unix and DCL shellsArne Vajhøj
| +- Re: Unix and DCL shellsChris Townley
| `* Re: Unix and DCL shellsSimon Clubley
|  +* Re: Unix and DCL shellsArne Vajhøj
|  |`* Re: Unix and DCL shellsmjos_examine
|  | `- Re: Unix and DCL shellsArne Vajhøj
|  +* Re: Unix and DCL shellsScott Dorsey
|  |+* Re: Unix and DCL shellsArne Vajhøj
|  ||`* Re: Unix and DCL shellsmjos_examine
|  || `- Re: Unix and DCL shellsArne Vajhøj
|  |+- Re: Unix and DCL shellsDan Cross
|  |+- Re: Unix and DCL shellsBob Eager
|  |`* Re: Unix and DCL shellsSimon Clubley
|  | +- Re: Unix and DCL shellsbill
|  | `- Re: Unix and DCL shellsLawrence D'Oliveiro
|  `* Re: Unix and DCL shellsLawrence D'Oliveiro
|   `* Re: Unix and DCL shellschrisq
|    `* Re: Unix and DCL shellsLawrence D'Oliveiro
|     `* Re: Unix and DCL shellsSimon Clubley
|      `- Re: Unix and DCL shellsLawrence D'Oliveiro
+* Re: Unix and DCL shellsDave Froble
|`* Re: Unix and DCL shellsSingle Stage to Orbit
| `* Re: Unix and DCL shellsSimon Clubley
|  +- Re: Unix and DCL shellsbill
|  `- Re: Unix and DCL shellsStephen Hoffman
+* Re: Unix and DCL shellsScott Dorsey
|`- Re: Unix and DCL shellsDan Cross
+* Re: Unix and DCL shellsLawrence D'Oliveiro
|`* Re: Unix and DCL shellsSimon Clubley
| `- Re: Unix and DCL shellsArne Vajhøj
`* Re: Unix and DCL shellsLawrence D'Oliveiro
 +* Re: Unix and DCL shellsSimon Clubley
 |`* Re: Unix and DCL shellsLawrence D'Oliveiro
 | `* Re: Unix and DCL shellsSimon Clubley
 |  +* Re: Unix and DCL shellsLawrence D'Oliveiro
 |  |`* Re: Unix and DCL shellsAndreas Eder
 |  | +- Re: Unix and DCL shellsLawrence D'Oliveiro
 |  | `- Re: Unix and DCL shellsDan Cross
 |  +* Re: Unix and DCL shellsDave Froble
 |  |`- Re: Unix and DCL shellsSimon Clubley
 |  `* Re: Unix and DCL shellsmjos_examine
 |   `- Re: Unix and DCL shellsSimon Clubley
 `- Re: Unix and DCL shellsArne Vajhøj

Pages:123
Re: Unix and DCL shells

<l07mnrFklcmU4@mid.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32883&group=comp.os.vms#32883

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news0009@eager.cx (Bob Eager)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: 10 Jan 2024 14:08:59 GMT
Lines: 34
Message-ID: <l07mnrFklcmU4@mid.individual.net>
References: <unh0cu$1hu29$4@dont-email.me>
<l037lbF2supU10@mid.individual.net> <unhrqa$6f4$1@reader1.panix.com>
<unhuo7$2dg$1@panix2.panix.com> <uni284$bl4$1@reader1.panix.com>
<l03k3qFffhoU2@mid.individual.net> <unibfh$1o881$8@dont-email.me>
<l04fk3FklcmU1@mid.individual.net> <unkalh$24p45$8@dont-email.me>
<l064qvFklcmU2@mid.individual.net> <unknbb$26oq9$1@dont-email.me>
<l0786pFklcmU3@mid.individual.net> <unm6ka$2gk7n$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net dOjBfW3ZKpPtyFaCukr4GgqNKa+QplPkEknU4swAE8sBmd1D7d
Cancel-Lock: sha1:40p/ZBknjNuunBSLAjrLKllPAeE= sha256:Z2mByfTsEIAdAIU7n1hW1KtJV20vfSgqqB1iOnNZFcg=
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
 by: Bob Eager - Wed, 10 Jan 2024 14:08 UTC

On Wed, 10 Jan 2024 08:38:18 -0500, Arne Vajhøj wrote:

> On 1/10/2024 5:00 AM, Bob Eager wrote:
>> On Wed, 10 Jan 2024 00:11:24 +0000, Lawrence D'Oliveiro wrote:
>>> On 9 Jan 2024 23:57:19 GMT, Bob Eager wrote:
>>>> Oh, I've examined the documentation (and books) in detail. But by
>>>> that time, I'd been using REXX for years, and it does all I need.
>>>> It's surprisingly powerful.
>>>
>>> I had a look at the Wikipedia overview
>>> <https://en.wikipedia.org/wiki/Rexx>, and I see it gushes a lot over
>>> the PARSE statement, but it doesn’t seem to have regular expressions.
>>> Is that overview out of date?
>>
>> REXX is a sparse language. But it has lots of libraries, and there are
>> regexp libraries.
>>
>> Personally, I think regexps are overrated! And I first started using
>> them in 1975.
>
> There is the famous quote:
>
> <quote>
> Some people, when confronted with a problem, think "I know, I'll use
> regular expressions." Now they have two problems.
> </quote>
>
> It is an obscure syntax.
>
> But it is powerful and very widely available (small differences but
> available), so my conclusion is: learn it.

Oh, I learned it. Back in the 1970s, and I've kept up to date. But they
are still overrated.

Re: Unix and DCL shells

<unmm70$a1j$1@reader1.panix.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32886&group=comp.os.vms#32886

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!nntp.comgw.net!weretis.net!feeder6.news.weretis.net!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
From: cross@spitfire.i.gajendra.net (Dan Cross)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Wed, 10 Jan 2024 18:04:16 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <unmm70$a1j$1@reader1.panix.com>
References: <unh0cu$1hu29$4@dont-email.me> <l0786pFklcmU3@mid.individual.net> <unm6ka$2gk7n$1@dont-email.me> <l07mnrFklcmU4@mid.individual.net>
Injection-Date: Wed, 10 Jan 2024 18:04:16 -0000 (UTC)
Injection-Info: reader1.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
logging-data="10291"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)
 by: Dan Cross - Wed, 10 Jan 2024 18:04 UTC

In article <l07mnrFklcmU4@mid.individual.net>,
Bob Eager <news0009@eager.cx> wrote:
>On Wed, 10 Jan 2024 08:38:18 -0500, Arne Vajhøj wrote:
>> On 1/10/2024 5:00 AM, Bob Eager wrote:
>>> On Wed, 10 Jan 2024 00:11:24 +0000, Lawrence D'Oliveiro wrote:
>>>> On 9 Jan 2024 23:57:19 GMT, Bob Eager wrote:
>>>>> Oh, I've examined the documentation (and books) in detail. But by
>>>>> that time, I'd been using REXX for years, and it does all I need.
>>>>> It's surprisingly powerful.
>>>>
>>>> I had a look at the Wikipedia overview
>>>> <https://en.wikipedia.org/wiki/Rexx>, and I see it gushes a lot over
>>>> the PARSE statement, but it doesn’t seem to have regular expressions.
>>>> Is that overview out of date?
>>>
>>> REXX is a sparse language. But it has lots of libraries, and there are
>>> regexp libraries.
>>>
>>> Personally, I think regexps are overrated! And I first started using
>>> them in 1975.
>>
>> There is the famous quote:
>>
>> <quote>
>> Some people, when confronted with a problem, think "I know, I'll use
>> regular expressions." Now they have two problems.
>> </quote>
>>
>> It is an obscure syntax.
>>
>> But it is powerful and very widely available (small differences but
>> available), so my conclusion is: learn it.
>
>Oh, I learned it. Back in the 1970s, and I've kept up to date. But they
>are still overrated.

That's sort of a weird take. Regular expressions, in their
purest form, are simply a notation for denotating elements of
the set of regular languages. It turns out that they're useful
for all sorts of applications. They may be overused, but
describing them as "overrated" kind of strikes me as being
similar to describing algebra as overrated.

- Dan C.

Re: Unix and DCL shells

<unmt05$2k7pr$3@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32889&group=comp.os.vms#32889

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Wed, 10 Jan 2024 20:00:05 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <unmt05$2k7pr$3@dont-email.me>
References: <unh0cu$1hu29$4@dont-email.me>
<l037lbF2supU10@mid.individual.net> <unhrqa$6f4$1@reader1.panix.com>
<unhuo7$2dg$1@panix2.panix.com> <uni284$bl4$1@reader1.panix.com>
<l03k3qFffhoU2@mid.individual.net> <unibfh$1o881$8@dont-email.me>
<l04fk3FklcmU1@mid.individual.net> <unkalh$24p45$8@dont-email.me>
<l064qvFklcmU2@mid.individual.net> <unknbb$26oq9$1@dont-email.me>
<l0786pFklcmU3@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 10 Jan 2024 20:00:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4abdc210971f7614a1a31b32233ac41f";
logging-data="2760507"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19N4CSim7RRACt4CfLA5cnY"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:buNv8lBsoDTn7GFtMcEgCHFILAU=
 by: Lawrence D'Oliv - Wed, 10 Jan 2024 20:00 UTC

On 10 Jan 2024 10:00:57 GMT, Bob Eager wrote:

> Personally, I think regexps are overrated! And I first started using
> them in 1975.

How about starting with a simple thing, like being able to treat multiple
separators as one:

re.split(r"\s+", "the quick brown fox")

giving

['the', 'quick', 'brown', 'fox']

Re: Unix and DCL shells

<unmtlc$2k7pr$4@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32891&group=comp.os.vms#32891

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Wed, 10 Jan 2024 20:11:24 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <unmtlc$2k7pr$4@dont-email.me>
References: <unh0cu$1hu29$4@dont-email.me> <unh4mb$1j2tg$1@dont-email.me>
<unh5m5$1j2lu$1@dont-email.me> <unhem3$1kjij$1@dont-email.me>
<uniauc$1o881$7@dont-email.me> <unjkm7$21hl2$1@dont-email.me>
<unk9if$24p45$3@dont-email.me> <unm5c7$2gdpa$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 10 Jan 2024 20:11:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4abdc210971f7614a1a31b32233ac41f";
logging-data="2760507"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JNQSsETgbVwQbXAOmT3wW"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:pqoLBk7ouEurll0A0bRj0LEM77Y=
 by: Lawrence D'Oliv - Wed, 10 Jan 2024 20:11 UTC

On Wed, 10 Jan 2024 13:16:56 -0000 (UTC), Simon Clubley wrote:

> On 2024-01-09, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>> On Tue, 9 Jan 2024 14:19:50 +0000, chrisq wrote:
>>
>>> Very useful for whole file system copies:
>>
>> I use rsync for that. It also does incremental updates.
>
> Likewise. You can also run it over a ssh transport when syncing between
> two different systems. You can also run it a second time in checksum
> mode to make sure nothing else gets transferred (I use this as a verify
> pass).

And, with the --link-dest option, you can do incremental backups that
look, for restoration purposes, just like full backups.

A powerful tool, with a million uses.

Re: Unix and DCL shells

<l08i9oFklcmU5@mid.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32895&group=comp.os.vms#32895

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news0009@eager.cx (Bob Eager)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: 10 Jan 2024 21:59:20 GMT
Lines: 48
Message-ID: <l08i9oFklcmU5@mid.individual.net>
References: <unh0cu$1hu29$4@dont-email.me> <l0786pFklcmU3@mid.individual.net>
<unm6ka$2gk7n$1@dont-email.me> <l07mnrFklcmU4@mid.individual.net>
<unmm70$a1j$1@reader1.panix.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net m20npfTF9jqFhRtjQdFgIQgj9NNKJ+VOc4gCDJNKBdVO92SL3P
Cancel-Lock: sha1:E103aQWhpk7kYYuixa0qrM9BF/4= sha256:3broubYP6//pJH/YGSjxPir3LOVRxkZhptFHcFaYlQg=
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
 by: Bob Eager - Wed, 10 Jan 2024 21:59 UTC

On Wed, 10 Jan 2024 18:04:16 +0000, Dan Cross wrote:

> In article <l07mnrFklcmU4@mid.individual.net>,
> Bob Eager <news0009@eager.cx> wrote:
>>On Wed, 10 Jan 2024 08:38:18 -0500, Arne Vajhøj wrote:
>>> On 1/10/2024 5:00 AM, Bob Eager wrote:
>>>> On Wed, 10 Jan 2024 00:11:24 +0000, Lawrence D'Oliveiro wrote:
>>>>> On 9 Jan 2024 23:57:19 GMT, Bob Eager wrote:
>>>>>> Oh, I've examined the documentation (and books) in detail. But by
>>>>>> that time, I'd been using REXX for years, and it does all I need.
>>>>>> It's surprisingly powerful.
>>>>>
>>>>> I had a look at the Wikipedia overview
>>>>> <https://en.wikipedia.org/wiki/Rexx>, and I see it gushes a lot over
>>>>> the PARSE statement, but it doesn’t seem to have regular
>>>>> expressions.
>>>>> Is that overview out of date?
>>>>
>>>> REXX is a sparse language. But it has lots of libraries, and there
>>>> are regexp libraries.
>>>>
>>>> Personally, I think regexps are overrated! And I first started using
>>>> them in 1975.
>>>
>>> There is the famous quote:
>>>
>>> <quote>
>>> Some people, when confronted with a problem, think "I know, I'll use
>>> regular expressions." Now they have two problems.
>>> </quote>
>>>
>>> It is an obscure syntax.
>>>
>>> But it is powerful and very widely available (small differences but
>>> available), so my conclusion is: learn it.
>>
>>Oh, I learned it. Back in the 1970s, and I've kept up to date. But they
>>are still overrated.
>
> That's sort of a weird take. Regular expressions, in their purest form,
> are simply a notation for denotating elements of the set of regular
> languages. It turns out that they're useful for all sorts of
> applications. They may be overused, but describing them as "overrated"
> kind of strikes me as being similar to describing algebra as overrated.

Perhaps 'overused' is a better term. I see a lot of instances where they
are simply not the right tool for the job. I use them where they are
appropriate.

Re: Unix and DCL shells

<unn4od$2lens$5@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32896&group=comp.os.vms#32896

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.furie.org.uk!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Wed, 10 Jan 2024 22:12:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <unn4od$2lens$5@dont-email.me>
References: <unh0cu$1hu29$4@dont-email.me> <l0786pFklcmU3@mid.individual.net>
<unm6ka$2gk7n$1@dont-email.me> <l07mnrFklcmU4@mid.individual.net>
<unmm70$a1j$1@reader1.panix.com> <l08i9oFklcmU5@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 10 Jan 2024 22:12:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4abdc210971f7614a1a31b32233ac41f";
logging-data="2800380"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RPdBIn0xID2QCnryHahj8"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:+oY92hfarJ70uMjp0LbVjwi03DI=
 by: Lawrence D'Oliv - Wed, 10 Jan 2024 22:12 UTC

On 10 Jan 2024 21:59:20 GMT, Bob Eager wrote:

> Perhaps 'overused' is a better term. I see a lot of instances where they
> are simply not the right tool for the job. I use them where they are
> appropriate.

The main thing to realize is that REs are a Chomsky Type 3 grammar. In
simple terms, they cannot count arbitrarily-nested parentheses. Once
you grasp this point, you will have a better idea when not to use them
<https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454>.

Re: Unix and DCL shells

<l08k3lFklcmU6@mid.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32898&group=comp.os.vms#32898

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!nntp.comgw.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news0009@eager.cx (Bob Eager)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: 10 Jan 2024 22:30:13 GMT
Lines: 17
Message-ID: <l08k3lFklcmU6@mid.individual.net>
References: <unh0cu$1hu29$4@dont-email.me> <l0786pFklcmU3@mid.individual.net>
<unm6ka$2gk7n$1@dont-email.me> <l07mnrFklcmU4@mid.individual.net>
<unmm70$a1j$1@reader1.panix.com> <l08i9oFklcmU5@mid.individual.net>
<unn4od$2lens$5@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 0jTxzdu89CvnqOjHpxQo8gloykmx6jXmjZzlN8pJJTERG/m4/d
Cancel-Lock: sha1:tRcLro/KSf6GkvxiZ/q5cMy9I5o= sha256:YvDQpmYGY/Lgc39JeFIYA1PQNQ3ziu/NNvEeHI7qZlg=
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
 by: Bob Eager - Wed, 10 Jan 2024 22:30 UTC

On Wed, 10 Jan 2024 22:12:29 +0000, Lawrence D'Oliveiro wrote:

> On 10 Jan 2024 21:59:20 GMT, Bob Eager wrote:
>
>> Perhaps 'overused' is a better term. I see a lot of instances where
>> they are simply not the right tool for the job. I use them where they
>> are appropriate.
>
> The main thing to realize is that REs are a Chomsky Type 3 grammar. In
> simple terms, they cannot count arbitrarily-nested parentheses. Once you
> grasp this point, you will have a better idea when not to use them
> <https://stackoverflow.com/questions/1732348/regex-match-open-tags-
except-xhtml-self-contained-tags/1732454#1732454>.

I know that. But many people don't.

(I taught compiler theory and practice for many years!)

Re: Unix and DCL shells

<unn838$2m4qe$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32900&group=comp.os.vms#32900

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Wed, 10 Jan 2024 23:09:28 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <unn838$2m4qe$1@dont-email.me>
References: <unh0cu$1hu29$4@dont-email.me> <l0786pFklcmU3@mid.individual.net>
<unm6ka$2gk7n$1@dont-email.me> <l07mnrFklcmU4@mid.individual.net>
<unmm70$a1j$1@reader1.panix.com> <l08i9oFklcmU5@mid.individual.net>
<unn4od$2lens$5@dont-email.me> <l08k3lFklcmU6@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 10 Jan 2024 23:09:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="de052cf5146997704944f12bae9cde46";
logging-data="2822990"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+RiFmTrDQEkSRyHPB8g99H"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:XdpA8jnmFEvtPq7BO3XWlEieTTw=
 by: Lawrence D'Oliv - Wed, 10 Jan 2024 23:09 UTC

On 10 Jan 2024 22:30:13 GMT, Bob Eager wrote:

> (I taught compiler theory and practice for many years!)

Cool! Have you heard of these new-fangled “PEG” things? Python is using
one for its parser now.

Perhaps they could be used for more powerful pattern-matching purposes
than REs. Or maybe they will simply introduce their own pitfalls, if not
used with care, like undecidability and endless loops.

Re: Unix and DCL shells

<unn8tn$2m4qe$2@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32901&group=comp.os.vms#32901

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Wed, 10 Jan 2024 23:23:35 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <unn8tn$2m4qe$2@dont-email.me>
References: <unh0cu$1hu29$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 10 Jan 2024 23:23:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="de052cf5146997704944f12bae9cde46";
logging-data="2822990"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18MRHHNMwdFm/OiUyhCwYJz"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:Tw/rOnmdpjRgFZiUHb3Og2S/FUI=
 by: Lawrence D'Oliv - Wed, 10 Jan 2024 23:23 UTC

On Mon, 8 Jan 2024 14:21:18 -0000 (UTC), Simon Clubley wrote:

> Filename globbing.

Coming back to this, it’s worth pointing out that you cannot simply add
features, willy-nilly, to a framework that was not designed with them in
mind.

Consider how the whole VMS mindset expects the command-line to work: there
is a distinction between filespecs separated by spaces and those separated
by commas, and even plus-signs. The CLI never does wildcard expansion, and
on the one hand this puts the burden on the program (which has the
powerful RMS $PARSE service to call on) to expand input filespecs, and on
the other hand it allows wildcards to appear in output filespecs as well
(again, supported by $PARSE) to indicate “use the same value here as in
the input filespec”.

That latter meaning is something I have sometimes missed on *nix systems.

In the *nix world, there is actually no requirement for filename globbing
to happen in a command at all. Shells usually do it, and they usually
provide a way to tell them not to do it. (If only because, believe it or
not, those globbing wildcard characters are valid in filenames, too.) If
one user program is directly spawning another, without going through a
shell, then it has to explicitly call some library routine to do globbing,
otherwise it doesn’t happen.

There is no equivalent to CLD files in the *nix world. (In my time on VMS,
I found them too fiddly to use, anyway, and relied on a simple “foreign”
command using LIB$TPARSE instead.) But one thing that improves the
situation is that the “command line” is not a simple string, but an array
of strings. And by default the shell will do word-splitting on the command
line the user passes, to build this array. So it is possible to implement
very simple option parsing in any program, without resorting to very
elaborate libraries, to support a useful range of command-line options.

Re: Unix and DCL shells

<unorrk$30on5$3@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32917&group=comp.os.vms#32917

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.chmurka.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: clubley@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Thu, 11 Jan 2024 13:52:52 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <unorrk$30on5$3@dont-email.me>
References: <unh0cu$1hu29$4@dont-email.me> <unn8tn$2m4qe$2@dont-email.me>
Injection-Date: Thu, 11 Jan 2024 13:52:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e737d5b4c6fdd38393577ac194f5cfba";
logging-data="3171045"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187aJb/97JvUuiHpEETa2XbPYLTR+4UMMg="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:KIEmmY97G2CSwV/xlsP1/Z+VvPM=
 by: Simon Clubley - Thu, 11 Jan 2024 13:52 UTC

On 2024-01-10, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On Mon, 8 Jan 2024 14:21:18 -0000 (UTC), Simon Clubley wrote:
>
>> Filename globbing.
>
> Coming back to this, it?s worth pointing out that you cannot simply add
> features, willy-nilly, to a framework that was not designed with them in
> mind.
>
> Consider how the whole VMS mindset expects the command-line to work: there
> is a distinction between filespecs separated by spaces and those separated
> by commas, and even plus-signs. The CLI never does wildcard expansion, and
> on the one hand this puts the burden on the program (which has the
> powerful RMS $PARSE service to call on) to expand input filespecs, and on
> the other hand it allows wildcards to appear in output filespecs as well
> (again, supported by $PARSE) to indicate ?use the same value here as in
> the input filespec?.
>

Fine. Then add the globbing pattern capabilities to the current VMS wildcard
lookup APIs without changing anything else. That gives you the same ability
to use more powerful pattern matching expressions on VMS without having to
change anything else in your code.

Simon.

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

Re: Unix and DCL shells

<unpjhd$34e6t$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32927&group=comp.os.vms#32927

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.chmurka.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Thu, 11 Jan 2024 15:37:03 -0500
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <unpjhd$34e6t$1@dont-email.me>
References: <unh0cu$1hu29$4@dont-email.me> <unn8tn$2m4qe$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 11 Jan 2024 20:37:01 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="251605f2229d235d1c244ad7e1ae86f4";
logging-data="3291357"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+axAtpLBwDmZpy/yIRP1XArVrrnYnmkG8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:BGWdoJ40gXwX85PYzz8l03pBZUc=
In-Reply-To: <unn8tn$2m4qe$2@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Thu, 11 Jan 2024 20:37 UTC

On 1/10/2024 6:23 PM, Lawrence D'Oliveiro wrote:
> Consider how the whole VMS mindset expects the command-line to work: there
> is a distinction between filespecs separated by spaces and those separated
> by commas, and even plus-signs. The CLI never does wildcard expansion, and
> on the one hand this puts the burden on the program (which has the
> powerful RMS $PARSE service to call on) to expand input filespecs,

Note that it is SYS$SEARCH that does the heavy lifting in this regard.
SYS$PARSE is just for prepping.

> and on
> the other hand it allows wildcards to appear in output filespecs as well
> (again, supported by $PARSE) to indicate “use the same value here as in
> the input filespec”.

Yes.

> There is no equivalent to CLD files in the *nix world. (In my time on VMS,
> I found them too fiddly to use, anyway, and relied on a simple “foreign”
> command using LIB$TPARSE instead.) But one thing that improves the
> situation is that the “command line” is not a simple string, but an array
> of strings. And by default the shell will do word-splitting on the command
> line the user passes, to build this array. So it is possible to implement
> very simple option parsing in any program, without resorting to very
> elaborate libraries, to support a useful range of command-line options.

That is what CLD does.

And a lot simpler than LIB$GET_FOREIGN and LIB$T[ABLE]_PARSE.

Arne

Re: Unix and DCL shells

<unppv2$35ada$3@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32936&group=comp.os.vms#32936

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Thu, 11 Jan 2024 22:26:43 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <unppv2$35ada$3@dont-email.me>
References: <unh0cu$1hu29$4@dont-email.me> <unn8tn$2m4qe$2@dont-email.me>
<unorrk$30on5$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 11 Jan 2024 22:26:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="de052cf5146997704944f12bae9cde46";
logging-data="3320234"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+jIbndMuGw3Utt8O9eepEi"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:+PVmWJvldbtqRkonB8rFd6lc5WE=
 by: Lawrence D'Oliv - Thu, 11 Jan 2024 22:26 UTC

On Thu, 11 Jan 2024 13:52:52 -0000 (UTC), Simon Clubley wrote:

> Fine. Then add the globbing pattern capabilities to the current VMS
> wildcard lookup APIs without changing anything else. That gives you the
> same ability to use more powerful pattern matching expressions on VMS
> without having to change anything else in your code.

I’m not really sure that’s worthwhile. One could argue that the existing
VMS wildcard patterns are already equivalent in power (or a bit beyond, in
the case of “...”), based on the corresponding constructs in the filename
specs.

Regular expressions, on the other hand, are somewhat more powerful. I did
one project where I had to do my own globbing against user-provided
patterns in the usual shell-wildcard syntax, and I found it easier to
convert those wildcards to RE patterns, and use those to scan against a
list of filenames, than to use the provided glob-expansion services.

Re: Unix and DCL shells

<unred6$3fiqb$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32962&group=comp.os.vms#32962

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: clubley@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Fri, 12 Jan 2024 13:21:42 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <unred6$3fiqb$1@dont-email.me>
References: <unh0cu$1hu29$4@dont-email.me> <unn8tn$2m4qe$2@dont-email.me> <unorrk$30on5$3@dont-email.me> <unppv2$35ada$3@dont-email.me>
Injection-Date: Fri, 12 Jan 2024 13:21:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0048898a03de924ac97a2827ffe13c6a";
logging-data="3656523"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX189/GWJhSbR48+xVkrAI+9q8KBtwrAWcbE="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:urghRhCwUYizfjMclVLQB2M/U78=
 by: Simon Clubley - Fri, 12 Jan 2024 13:21 UTC

On 2024-01-11, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On Thu, 11 Jan 2024 13:52:52 -0000 (UTC), Simon Clubley wrote:
>
>> Fine. Then add the globbing pattern capabilities to the current VMS
>> wildcard lookup APIs without changing anything else. That gives you the
>> same ability to use more powerful pattern matching expressions on VMS
>> without having to change anything else in your code.
>
> I?m not really sure that?s worthwhile. One could argue that the existing
> VMS wildcard patterns are already equivalent in power (or a bit beyond, in
> the case of ?...?), based on the corresponding constructs in the filename
> specs.
>

The main thing missing on VMS is that you can't use a grouping
operator such as [a-d] to restrict the files selected or to select
everyting not in the grouping operator. There's nothing similar
to the {} expansion operator either.

I use that kind of selection criteria all the time on Linux.

Simon.

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

Re: Unix and DCL shells

<uns6nu$3j53u$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32992&group=comp.os.vms#32992

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Fri, 12 Jan 2024 20:17:02 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <uns6nu$3j53u$1@dont-email.me>
References: <unh0cu$1hu29$4@dont-email.me> <unn8tn$2m4qe$2@dont-email.me>
<unorrk$30on5$3@dont-email.me> <unppv2$35ada$3@dont-email.me>
<unred6$3fiqb$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 12 Jan 2024 20:17:02 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="aead4f05e37ab16bb6699454e4c0746c";
logging-data="3773566"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184OErWlGVN6Ttcs9rskHsB"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:mNBgMMFy5ElHfLRc7XG8WkOoLhM=
 by: Lawrence D'Oliv - Fri, 12 Jan 2024 20:17 UTC

On Fri, 12 Jan 2024 13:21:42 -0000 (UTC), Simon Clubley wrote:

> The main thing missing on VMS is that you can't use a grouping
> operator such as [a-d] to restrict the files selected or to select
> everyting not in the grouping operator.

Ah, true. I suppose that could be added as a new kind of wildcard option
to the existing wildcard syntax. After all, there is no shortage of
characters that are currently illegal in filespecs, that could be used. ;)

For those who are wondering about the usefulness of this on *nix systems,
here

ls -ld ~/.[!.]*

is a command to list all dotfiles/dotdirectories in my home directory.

(As to why they need to clutter up the top level of my home directory, is
another peeve.)

(As to why every directory needs to contain those useless “.” and “..”
entries, is yet another peeve.)

> There's nothing similar to the {} expansion operator either.

That's not in POSIX, that’s a bash-ism. And it’s not really a “wildcard”,
either.

Re: Unix and DCL shells

<uns6ro$3j6rr$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32994&group=comp.os.vms#32994

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: davef@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Fri, 12 Jan 2024 15:19:12 -0500
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <uns6ro$3j6rr$1@dont-email.me>
References: <unh0cu$1hu29$4@dont-email.me> <unn8tn$2m4qe$2@dont-email.me>
<unorrk$30on5$3@dont-email.me> <unppv2$35ada$3@dont-email.me>
<unred6$3fiqb$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 12 Jan 2024 20:19:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5caefef81db8ebac06bb6c51997805c7";
logging-data="3775355"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fOiaNeDyyS00rU3rPdP1W6iVLnhknvUg="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:e0RN3Ck5/LTQlpARdLG3eg1yWgg=
In-Reply-To: <unred6$3fiqb$1@dont-email.me>
 by: Dave Froble - Fri, 12 Jan 2024 20:19 UTC

On 1/12/2024 8:21 AM, Simon Clubley wrote:
> On 2024-01-11, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>> On Thu, 11 Jan 2024 13:52:52 -0000 (UTC), Simon Clubley wrote:
>>
>>> Fine. Then add the globbing pattern capabilities to the current VMS
>>> wildcard lookup APIs without changing anything else. That gives you the
>>> same ability to use more powerful pattern matching expressions on VMS
>>> without having to change anything else in your code.
>>
>> I?m not really sure that?s worthwhile. One could argue that the existing
>> VMS wildcard patterns are already equivalent in power (or a bit beyond, in
>> the case of ?...?), based on the corresponding constructs in the filename
>> specs.
>>
>
> The main thing missing on VMS is that you can't use a grouping
> operator such as [a-d] to restrict the files selected or to select
> everyting not in the grouping operator. There's nothing similar
> to the {} expansion operator either.
>
> I use that kind of selection criteria all the time on Linux.
>
> Simon.
>

Maybe you do, but, in the past I've done the same on VMS, and more.

Now, to be specific, I read the above to be select filenames beginning with the
letters a thru d. Is that correct?

--
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: Unix and DCL shells

<uns72h$3j753$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32997&group=comp.os.vms#32997

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: m6502x64@gmail.com (mjos_examine)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Fri, 12 Jan 2024 15:22:41 -0500
Organization: A noiseless patient Spider
Lines: 96
Message-ID: <uns72h$3j753$1@dont-email.me>
References: <unh0cu$1hu29$4@dont-email.me> <unn8tn$2m4qe$2@dont-email.me>
<unorrk$30on5$3@dont-email.me> <unppv2$35ada$3@dont-email.me>
<unred6$3fiqb$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 12 Jan 2024 20:22:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ab9caba95e9725a10f861b5284a634d2";
logging-data="3775651"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8MUswkOf+qapZ3o2Se8Pa"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:S+69S879+VWBifZtDlsXcbB8zmE=
Content-Language: en-US
In-Reply-To: <unred6$3fiqb$1@dont-email.me>
 by: mjos_examine - Fri, 12 Jan 2024 20:22 UTC

On 2024-01-12 8:21 a.m., Simon Clubley wrote:
> On 2024-01-11, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>> On Thu, 11 Jan 2024 13:52:52 -0000 (UTC), Simon Clubley wrote:
>>
>>> Fine. Then add the globbing pattern capabilities to the current VMS
>>> wildcard lookup APIs without changing anything else. That gives you the
>>> same ability to use more powerful pattern matching expressions on VMS
>>> without having to change anything else in your code.
>>
>> I?m not really sure that?s worthwhile. One could argue that the existing
>> VMS wildcard patterns are already equivalent in power (or a bit beyond, in
>> the case of ?...?), based on the corresponding constructs in the filename
>> specs.
>>
>
> The main thing missing on VMS is that you can't use a grouping
> operator such as [a-d] to restrict the files selected or to select
> everyting not in the grouping operator. There's nothing similar
> to the {} expansion operator either.
>
> I use that kind of selection criteria all the time on Linux.
>
> Simon.
>

$ dir *.txt

Directory DKA100:[test]

atest.txt;1 btest.txt;1 ctest.txt;1 dtest.txt;1
etest.txt;1 ftest.txt;1 gtest.txt;1

Total of 7 files.

$
$ $ type testglob.c
/* -------- start of testglob.c --------- */
/* experimenting with RTL glob on OpenVMS */

#include <stdio.h>
#include <glob.h>
/*
* From:
*
https://docs.vmssoftware.com/vsi-c-run-time-library-reference-manual-for-openvms-systems/
* The glob function defaults to OpenVMS mode unless one of the
* following conditions is met (in which case glob uses UNIX mode):
* - The DECC$GLOB_UNIX_STYLE is enabled.
* - The DECC$FILENAME_UNIX_ONLY feature logical is enabled.
* - The glob function checks the specified pattern for pathname
* indications, such as directory delimiters, and determines it to
* be a UNIX style pathname.
*/

int main(int argc, char *argv[])
{ const char *mypattern = "[a-c]*";
glob_t myglob;
int result;
size_t count;

printf("pattern is:%s\n", mypattern);
result = glob(mypattern, 0, NULL, &myglob);
if (result == 0) {
for (count = 0; count < myglob.gl_pathc; ++count) {
if (myglob.gl_pathv) {
printf("%s\n", myglob.gl_pathv[count]);
}
}
globfree(&myglob);
} else {
printf("glob() failed (%s).\n",
(result == GLOB_ABORTED) ? "GLOB_ABORTED"
: (result == GLOB_NOMATCH) ? "GLOB_NOMATCH"
: (result == GLOB_NOSPACE) ? "GLOB_NOSPACE"
: "unknown error");
}
} /* -------- end of testglob.c --------- */
$ cc testglob.c
$ link testglob
$ run testglob
pattern is:[a-c]*
glob() failed (GLOB_NOMATCH).
$ $ DEFINE DECC$GLOB_UNIX_STYLE ENABLE
$ $ run testglob
pattern is:[a-c]*
atest.txt
btest.txt
ctest.txt
$ DEAS DECC$GLOB_UNIX_STYLE
$

Re: Unix and DCL shells

<uo3c6m$ubcq$3@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33068&group=comp.os.vms#33068

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: clubley@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Mon, 15 Jan 2024 13:33:10 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <uo3c6m$ubcq$3@dont-email.me>
References: <unh0cu$1hu29$4@dont-email.me> <unn8tn$2m4qe$2@dont-email.me> <unorrk$30on5$3@dont-email.me> <unppv2$35ada$3@dont-email.me> <unred6$3fiqb$1@dont-email.me> <uns6ro$3j6rr$1@dont-email.me>
Injection-Date: Mon, 15 Jan 2024 13:33:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b3c58406cbdaa4af0449830a4346a294";
logging-data="994714"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ZaWjCSn6KwD+7nIGvEYWhtzwIgtre5Xg="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:RjICe4IDUl6r0iFldZLFq8xm3/4=
 by: Simon Clubley - Mon, 15 Jan 2024 13:33 UTC

On 2024-01-12, Dave Froble <davef@tsoft-inc.com> wrote:
> On 1/12/2024 8:21 AM, Simon Clubley wrote:
>> On 2024-01-11, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>> On Thu, 11 Jan 2024 13:52:52 -0000 (UTC), Simon Clubley wrote:
>>>
>>>> Fine. Then add the globbing pattern capabilities to the current VMS
>>>> wildcard lookup APIs without changing anything else. That gives you the
>>>> same ability to use more powerful pattern matching expressions on VMS
>>>> without having to change anything else in your code.
>>>
>>> I?m not really sure that?s worthwhile. One could argue that the existing
>>> VMS wildcard patterns are already equivalent in power (or a bit beyond, in
>>> the case of ?...?), based on the corresponding constructs in the filename
>>> specs.
>>>
>>
>> The main thing missing on VMS is that you can't use a grouping
>> operator such as [a-d] to restrict the files selected or to select
>> everyting not in the grouping operator. There's nothing similar
>> to the {} expansion operator either.
>>
>> I use that kind of selection criteria all the time on Linux.
>>
>
> Maybe you do, but, in the past I've done the same on VMS, and more.
>
> Now, to be specific, I read the above to be select filenames beginning with the
> letters a thru d. Is that correct?
>

Yes. You can also negate the pattern to find everything not in that pattern.

Simon.

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

Re: Unix and DCL shells

<uo3cas$ubcq$4@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33069&group=comp.os.vms#33069

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.chmurka.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: clubley@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Mon, 15 Jan 2024 13:35:24 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <uo3cas$ubcq$4@dont-email.me>
References: <unh0cu$1hu29$4@dont-email.me> <unn8tn$2m4qe$2@dont-email.me> <unorrk$30on5$3@dont-email.me> <unppv2$35ada$3@dont-email.me> <unred6$3fiqb$1@dont-email.me> <uns72h$3j753$1@dont-email.me>
Injection-Date: Mon, 15 Jan 2024 13:35:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b3c58406cbdaa4af0449830a4346a294";
logging-data="994714"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/DizKji2GW3MMzW/xs7Zl97WnQL6EiXFA="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:Z5/F5c00t39p3aLRAGjakiVWf+s=
 by: Simon Clubley - Mon, 15 Jan 2024 13:35 UTC

On 2024-01-12, mjos_examine <m6502x64@gmail.com> wrote:
>
> $ dir *.txt
>
> Directory DKA100:[test]
>
> atest.txt;1 btest.txt;1 ctest.txt;1 dtest.txt;1
> etest.txt;1 ftest.txt;1 gtest.txt;1
>
> Total of 7 files.
>
> $
> $
> $ type testglob.c

[snip]

Cute. :-) Now get that added to the native VMS filename lookup API using
VMS-suitable syntax and make it available in DCL... :-)

Simon.

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

Re: Unix and DCL shells

<8734up7v0v.fsf@eder.anydns.info>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33217&group=comp.os.vms#33217

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!nntp.comgw.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: a_eder_muc@web.de (Andreas Eder)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Mon, 22 Jan 2024 07:16:16 +0100
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <8734up7v0v.fsf@eder.anydns.info>
References: <unh0cu$1hu29$4@dont-email.me> <unn8tn$2m4qe$2@dont-email.me>
<unorrk$30on5$3@dont-email.me> <unppv2$35ada$3@dont-email.me>
<unred6$3fiqb$1@dont-email.me> <uns6nu$3j53u$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="b42e5f8d0ba7057d624407c39324cf84";
logging-data="666245"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NnRlSZiKgvmXPlKhZwMCU"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:v5ERvQy5Ndn1tzwwT3gYAf6M3Ug=
sha1:I9KaGXM5G5v4ARNMMhHXOzH2F4w=
 by: Andreas Eder - Mon, 22 Jan 2024 06:16 UTC

On Fr 12 Jan 2024 at 20:17, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:

> Ah, true. I suppose that could be added as a new kind of wildcard option
> to the existing wildcard syntax. After all, there is no shortage of
> characters that are currently illegal in filespecs, that could be used. ;)
>
> For those who are wondering about the usefulness of this on *nix systems,
> here
>
> ls -ld ~/.[!.]*
>
> is a command to list all dotfiles/dotdirectories in my home directory.

I think you meant

> ls -ld ~/.[^.]*

'Andreas

Re: Unix and DCL shells

<uol3cm$kf83$3@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33218&group=comp.os.vms#33218

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Mon, 22 Jan 2024 06:53:10 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uol3cm$kf83$3@dont-email.me>
References: <unh0cu$1hu29$4@dont-email.me> <unn8tn$2m4qe$2@dont-email.me>
<unorrk$30on5$3@dont-email.me> <unppv2$35ada$3@dont-email.me>
<unred6$3fiqb$1@dont-email.me> <uns6nu$3j53u$1@dont-email.me>
<8734up7v0v.fsf@eder.anydns.info>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 22 Jan 2024 06:53:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bfdaa5dc2469429165b2d062b928a109";
logging-data="670979"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ouMd1JPNkgaNkIKq4Uy01"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:w4S0A3wRIfe+IMKj72a6fO8rtQA=
 by: Lawrence D'Oliv - Mon, 22 Jan 2024 06:53 UTC

On Mon, 22 Jan 2024 07:16:16 +0100, Andreas Eder wrote:

> On Fr 12 Jan 2024 at 20:17, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>
>> For those who are wondering about the usefulness of this on *nix
>> systems, here
>>
>> ls -ld ~/.[!.]*
>>
>> is a command to list all dotfiles/dotdirectories in my home directory.
>
> I think you meant
>
>> ls -ld ~/.[^.]*

That might work in Bash, but the first is POSIX-compliant.

Re: Unix and DCL shells

<uolq4g$4cl$1@reader1.panix.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33223&group=comp.os.vms#33223

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
From: cross@spitfire.i.gajendra.net (Dan Cross)
Newsgroups: comp.os.vms
Subject: Re: Unix and DCL shells
Date: Mon, 22 Jan 2024 13:21:20 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <uolq4g$4cl$1@reader1.panix.com>
References: <unh0cu$1hu29$4@dont-email.me> <unred6$3fiqb$1@dont-email.me> <uns6nu$3j53u$1@dont-email.me> <8734up7v0v.fsf@eder.anydns.info>
Injection-Date: Mon, 22 Jan 2024 13:21:20 -0000 (UTC)
Injection-Info: reader1.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
logging-data="4501"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)
 by: Dan Cross - Mon, 22 Jan 2024 13:21 UTC

In article <8734up7v0v.fsf@eder.anydns.info>,
Andreas Eder <a_eder_muc@web.de> wrote:
>On Fr 12 Jan 2024 at 20:17, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>
>> Ah, true. I suppose that could be added as a new kind of wildcard option
>> to the existing wildcard syntax. After all, there is no shortage of
>> characters that are currently illegal in filespecs, that could be used. ;)
>>
>> For those who are wondering about the usefulness of this on *nix systems,
>> here
>>
>> ls -ld ~/.[!.]*
>>
>> is a command to list all dotfiles/dotdirectories in my home directory.
>
>I think you meant
>
>> ls -ld ~/.[^.]*

The POSIX shell notation is kind of strange; it was, as I was
told, originally based on ksh88, which uses this notation for
negation in pattern matching. In particular, section 2.13.1 of
the current standard says that `!` takes the place of `^` in
shell pattern matching:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_13

Beats me why Korn chose this syntax. Historically, the 7th
Edition shell by Bourne didn't support negation in patterns
at all.

- Dan C.

Pages:123
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor