Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Bank error in your favor. Collect $200.


comp / comp.unix.shell / Re: Globbing versus regular expressions

SubjectAuthor
* Globbing versus regular expressionsAxel Reichert
+- Re: Globbing versus regular expressionsJanis Papanagnou
+- Re: Globbing versus regular expressionsJoerg Mertens
+- Re: Globbing versus regular expressionsKaz Kylheku
+- Re: Globbing versus regular expressionsLawrence D'Oliveiro
+* Re: Globbing versus regular expressionsEd Morton
|`- Re: Globbing versus regular expressionsKeith Thompson
`* Re: Globbing versus regular expressionsEd Morton
 `* Re: Globbing versus regular expressionsAxel Reichert
  `- Re: Globbing versus regular expressionsLawrence D'Oliveiro

1
Subject: Globbing versus regular expressions
From: Axel Reichert
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Sun, 21 Jul 2024 07:01 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mail@axel-reichert.de (Axel Reichert)
Newsgroups: comp.unix.shell
Subject: Globbing versus regular expressions
Date: Sun, 21 Jul 2024 09:01:18 +0200
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <87wmlf2pq9.fsf@axel-reichert.de>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sun, 21 Jul 2024 09:01:19 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="8a138068efb807ff5037df8ab41f6fb9";
logging-data="4189712"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/p11A33YNfJHDOCkg6Mf5eI9rCHy6sPmI="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:gaZ7JF821TxappECcP4OmX8AXZ8=
sha1:mjo8yZ4TgTdKySWhAQKD8Uuy0d0=
View all headers

Hi all,

a colleague (new to command line wizardry) seemed puzzled by the
existence of both globbing for file names (shell) and regular
expressions for strings (many other command line tools).

Since I am familiar with both mechanisms for decades, I never thought
about this "redundancy", but now I think he has a point, even more so if
you are using the "dired" file manager in Emacs, which further blurs the
distinction between mangling text and working on files.

Since regexes are (at quick glance) a superset of globs, why not
consistently use the former for both file names and strings? The
few additional keystrokes (.* instead of *) are IMHO easily compensated
for by the more powerful capabilities of regexes.

A little reading on Wikipedia showed that both came into popular usage
in the early 70s. So why was globbing not dropped and regexes used
throughout? It seems that ksh93 supports "regex globbing". bash has
"extended globbing", but this seems a clumsy, bolted-on solution. Are
there shells out there which follow a regex-only approach (of this would
be non-POSIX)?

Happy for any further insights (technical or historical) shed on this
topic!

Axel

Subject: Re: Globbing versus regular expressions
From: Janis Papanagnou
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Sun, 21 Jul 2024 09:36 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell
Subject: Re: Globbing versus regular expressions
Date: Sun, 21 Jul 2024 11:36:08 +0200
Organization: A noiseless patient Spider
Lines: 70
Message-ID: <v7ikqa$1kdm$1@dont-email.me>
References: <87wmlf2pq9.fsf@axel-reichert.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 21 Jul 2024 11:36:10 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4b8cd98956e958c6f7be2da2c2043323";
logging-data="53686"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/sqowHGZd4zNqUUUgesWDk"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:m/cnzbnL1gGp4NP+KQATsMEjdEE=
In-Reply-To: <87wmlf2pq9.fsf@axel-reichert.de>
X-Enigmail-Draft-Status: N1110
View all headers

On 21.07.2024 09:01, Axel Reichert wrote:
> Hi all,
>
> a colleague (new to command line wizardry) seemed puzzled by the
> existence of both globbing for file names (shell) and regular
> expressions for strings (many other command line tools).
>
> Since I am familiar with both mechanisms for decades, I never thought
> about this "redundancy", but now I think he has a point, even more so if
> you are using the "dired" file manager in Emacs, which further blurs the
> distinction between mangling text and working on files.
>
> Since regexes are (at quick glance) a superset of globs, why not
> consistently use the former for both file names and strings? The
> few additional keystrokes (.* instead of *) are IMHO easily compensated
> for by the more powerful capabilities of regexes.
>
> A little reading on Wikipedia showed that both came into popular usage
> in the early 70s. So why was globbing not dropped and regexes used
> throughout? It seems that ksh93 supports "regex globbing". bash has
> "extended globbing", but this seems a clumsy, bolted-on solution. Are
> there shells out there which follow a regex-only approach (of this would
> be non-POSIX)?
>
> Happy for any further insights (technical or historical) shed on this
> topic!

As you noticed the two forms came from different sort of sources.
Globbing was originally primitive (*, ?, [...], [!...]), and the
regexps implemented parsing/matching of the Regular Expressions
class of formal languages.

The syntax of globbing made it impossible to switch to BRE or ERE
(the two common forms on Unix systems that supported regexps;
meanwhile there are yet more variants with syntactic sugar, but
also extensions of the class of Regular Expressions, accompanied
with its own caveats). The characters, say, '.' or '?' have just
different meanings. That's why Kornshell introduced extensions of
globbing to support some patterns known from BRE/ERE, for example
*(X) for X*, +(X) for X+, ?(X) for X?, and a few own others, like
@(X) and !(X). At some point, because of the prevalence of BRE/ERE
the supported both forms in cases where regular expressions have
to be parsed.

The Kornshell patterns are (with one subtle corner case) a full
regular expression vehicle, and they are certainly no "subset" of
regexps as the more primitive (historic) globbing functions (that
are still used in most other shells).

You cannot just remove "globbing regexps" because they are used.
Similar with BRE/ERE. You would just break most code; code based
on globbing and code based on BRE/ERE. So I think Kornshell did
it the right way, to support both. And with Kornshell globbing we
can of course also express much more powerful patterns than with
the primitive historic globbing facilities.

But even the Unix regexps have different (meta-)syntax depending
on the tools; the reason is that some characters have a native
meaning, thus the regexp metacharacter has to be marked (escaped)
to get one meaning or the other; sometimes the escape '\' symbol
makes the subsequent character a regexp meta-character, in other
tools it makes it a native non-metacharacter.

So it would make little sense (IMO) if there's "shells out there
which follow a regex-only approach"; they would certainly be non-
standard and most likely of limited use (even if used only in own
restricted ecosystems).

Janis

Subject: Re: Globbing versus regular expressions
From: Joerg Mertens
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Sun, 21 Jul 2024 09:36 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!jmertens.eternal-september.org!.POSTED!not-for-mail
From: joerg-mertens@t-online.de (Joerg Mertens)
Newsgroups: comp.unix.shell
Subject: Re: Globbing versus regular expressions
Date: Sun, 21 Jul 2024 11:36:47 +0200
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <v7ikrh$1kif$1@jmertens.eternal-september.org>
References: <87wmlf2pq9.fsf@axel-reichert.de>
Injection-Date: Sun, 21 Jul 2024 11:36:50 +0200 (CEST)
Injection-Info: jmertens.eternal-september.org; posting-host="76b8cbc80dfd68666bfe477069cf88d8";
logging-data="53851"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OwpmJHFtZIprWke0UAQiH8pzRID1V3XA="
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (OpenBSD/7.5 (amd64)) tinews.pl/1.1.61
Cancel-Lock: sha1:jtkJWhAaFlYQGahOAcx7R14dmAs=
View all headers

Axel Reichert <mail@axel-reichert.de> wrote:
> Hi all,
>
> a colleague (new to command line wizardry) seemed puzzled by the
> existence of both globbing for file names (shell) and regular
> expressions for strings (many other command line tools).
>
> Since I am familiar with both mechanisms for decades, I never thought
> about this "redundancy", but now I think he has a point, even more so if
> you are using the "dired" file manager in Emacs, which further blurs the
> distinction between mangling text and working on files.
>
> Since regexes are (at quick glance) a superset of globs, why not
> consistently use the former for both file names and strings? The
> few additional keystrokes (.* instead of *) are IMHO easily compensated
> for by the more powerful capabilities of regexes.
>
> A little reading on Wikipedia showed that both came into popular usage
> in the early 70s. So why was globbing not dropped and regexes used
> throughout? It seems that ksh93 supports "regex globbing". bash has
> "extended globbing", but this seems a clumsy, bolted-on solution. Are
> there shells out there which follow a regex-only approach (of this would
> be non-POSIX)?
>
> Happy for any further insights (technical or historical) shed on this
> topic!

I guess, glob style matching is just easier to learn, especially
for non-technical persons. In regular expressions you have more
special characters you cannot use unescaped, like e.g. the dot,
which is part of many filenames. This makes it more inconvenient
to use in the context of file handling and it also takes more time
to learn all the details. I know both systems and I also tend to
use globbing when working with files, even if regex is available.
Most of the time you don't need the more complex possibilities regex
provides.

Subject: Re: Globbing versus regular expressions
From: Kaz Kylheku
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Sun, 21 Jul 2024 15:09 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell
Subject: Re: Globbing versus regular expressions
Date: Sun, 21 Jul 2024 15:09:46 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <20240721080121.915@kylheku.com>
References: <87wmlf2pq9.fsf@axel-reichert.de>
Injection-Date: Sun, 21 Jul 2024 17:09:46 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d7167e807e08980fef0c391925ded439";
logging-data="159306"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19nk4Bax/HfbEAk7UcoWvZTv/bYJwSWg2Y="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:weXCDNMJwq8ikbUFW2F8l1rk2Ns=
View all headers

On 2024-07-21, Axel Reichert <mail@axel-reichert.de> wrote:
> Hi all,
>
> a colleague (new to command line wizardry) seemed puzzled by the
> existence of both globbing for file names (shell) and regular
> expressions for strings (many other command line tools).

path name globs are regular expressions. You can mechanically translate
globs to regular expressions.

If you have a regex engine and access to traversing the filesystem,
you can write glob.

globs are a syntactic sugar for a subset of regex. They are not as
powerful, but they are more concise and ergonomic for their target
use cases.

> Since regexes are (at quick glance) a superset of globs, why not
> consistently use the former for both file names and strings? The

globs are used for strings; check out the case statement in the
POSIX shell language, and the fnmatch C library function.

You see uses of glob-like processing outside of Unix.
For instance, the Redirector browser extension for Firefox
uses glob-like patterns such as:

https://example.com/*/foo/*.html

where in the right hand side of the rewrite pattern you can refer
to the parts matched by the * syntax, in left to right order
using $1, $2, ...

> few additional keystrokes (.* instead of *) are IMHO easily compensated
> for by the more powerful capabilities of regexes.

So you might think, but it would actually be a nuisance, and
trip up people. (Even the coders, never mind non-coders.)

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Subject: Re: Globbing versus regular expressions
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Sun, 21 Jul 2024 21:29 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell
Subject: Re: Globbing versus regular expressions
Date: Sun, 21 Jul 2024 21:29:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <v7jujr$8pms$2@dont-email.me>
References: <87wmlf2pq9.fsf@axel-reichert.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 21 Jul 2024 23:29:32 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c51abaeff06798f1fc5c50999d77d5e4";
logging-data="288476"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19c/fzTyTP0JVEGcNnJqI62"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:iypEMZ12lOKeARIWfFt4ad2Anm8=
View all headers

On Sun, 21 Jul 2024 09:01:18 +0200, Axel Reichert wrote:

> Since regexes are (at quick glance) a superset of globs, why not
> consistently use the former for both file names and strings?

I would guess:

1) Historical reasons; I would say wildcards originated before regexes.
2) Issues with syntax: for example, dots mean “any character” in a regex,
while they occur quite commonly in filenames, and having to escape them
all the time would be a pain.
3) Simplicity. Wildcards are much more limited than regexes, but they
are convenient for a lot of common cases.

Also, regexes have evolved a lot over time. They were considered fairly
exotic at the time of the origin of tools like awk or sed, and also they
varied quite a lot in syntax and capabilities. I would credit the coming
of Perl with popularizing the idea in quite a powerful form--so powerful
that “Perl-Compatible Regular Expression” (“PCRE”) has become the closest,
I think to a de-facto standard for how regexes should work.

Subject: Re: Globbing versus regular expressions
From: Ed Morton
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Fri, 2 Aug 2024 15:26 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mortonspam@gmail.com (Ed Morton)
Newsgroups: comp.unix.shell
Subject: Re: Globbing versus regular expressions
Date: Fri, 2 Aug 2024 10:26:23 -0500
Organization: A noiseless patient Spider
Lines: 58
Message-ID: <v8itr3$2soau$1@dont-email.me>
References: <87wmlf2pq9.fsf@axel-reichert.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 02 Aug 2024 17:26:28 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e300bf01ee3e759629451260d2adad72";
logging-data="3039582"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/g43o+ZPW3v962//QiEbgy"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:AUHrTlurLWrNs7pyYkLfa4Bq/MM=
X-Antivirus: Avast (VPS 240802-2, 8/2/2024), Outbound message
Content-Language: en-US
In-Reply-To: <87wmlf2pq9.fsf@axel-reichert.de>
X-Antivirus-Status: Clean
View all headers

On 7/21/2024 2:01 AM, Axel Reichert wrote:
> Hi all,
>
> a colleague (new to command line wizardry) seemed puzzled by the
> existence of both globbing for file names (shell) and regular
> expressions for strings (many other command line tools).
>
> Since I am familiar with both mechanisms for decades, I never thought
> about this "redundancy", but now I think he has a point, even more so if
> you are using the "dired" file manager in Emacs, which further blurs the
> distinction between mangling text and working on files.
>
> Since regexes are (at quick glance) a superset of globs, why not
> consistently use the former for both file names and strings? The
> few additional keystrokes (.* instead of *) are IMHO easily compensated
> for by the more powerful capabilities of regexes.
>
> A little reading on Wikipedia showed that both came into popular usage
> in the early 70s. So why was globbing not dropped and regexes used
> throughout? It seems that ksh93 supports "regex globbing". bash has
> "extended globbing", but this seems a clumsy, bolted-on solution. Are
> there shells out there which follow a regex-only approach (of this would
> be non-POSIX)?
>
> Happy for any further insights (technical or historical) shed on this
> topic!
>
> Axel

Bear in mind that a shell is an environment from which to manipulate
(create/destroy) files and processes and sequence calls to other tools,
not a tool to manipulate text, while regular expressions are part of the
functionality for manipulating text in tools designed to do that. So
while globbing (as used by shell pattern matching against file names)
and regexps (as used by text processing tools for pattern matching
against text strings) appear similar in functionality, they have
different applications.

As a simple example, the `.` regexp metcaharacter matches any character,
but it's very common in shell to have file names that start with a `.`
(e.g. `.profile`) or contain a `.` (e.g. `stuff.txt`) so it's more
convenient for `.` to be literal in shell pattern matching (and have `?`
mean "any character" instead) than it is in text pattern matching.

It'd be annoying and more error-prone if every time you wanted to list
files that start with `s` and end in `.txt` you had to write:

ls ^s.*\.txt$

instead of just:

ls s*.txt

So, it's just horses-for-courses - globbing patterns make filename
matching simplest most of the time while regexps make text matching
simplest most of the time.

Ed.

Subject: Re: Globbing versus regular expressions
From: Ed Morton
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Fri, 2 Aug 2024 15:39 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mortonspam@gmail.com (Ed Morton)
Newsgroups: comp.unix.shell
Subject: Re: Globbing versus regular expressions
Date: Fri, 2 Aug 2024 10:39:28 -0500
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <v8iujg$2soiv$1@dont-email.me>
References: <87wmlf2pq9.fsf@axel-reichert.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 02 Aug 2024 17:39:29 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e300bf01ee3e759629451260d2adad72";
logging-data="3039839"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18TGBi3K8QA1QTFw25l6DSe"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:k9jQOpzTupXH+6O8upZ8oFOeUfs=
In-Reply-To: <87wmlf2pq9.fsf@axel-reichert.de>
Content-Language: en-US
X-Antivirus-Status: Clean
X-Antivirus: Avast (VPS 240802-2, 8/2/2024), Outbound message
View all headers

On 7/21/2024 2:01 AM, Axel Reichert wrote:
> Hi all,
>
> a colleague (new to command line wizardry) seemed puzzled by the
> existence of both globbing for file names (shell) and regular
> expressions for strings (many other command line tools).

<snip>
There's an IMO interesting Q&A about globs and regexps, including some
history, at:

https://unix.stackexchange.com/questions/136353/history-of-bash-globbing

Regards,

Ed.

Subject: Re: Globbing versus regular expressions
From: Keith Thompson
Newsgroups: comp.unix.shell
Organization: None to speak of
Date: Mon, 5 Aug 2024 03:43 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S.Thompson+u@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell
Subject: Re: Globbing versus regular expressions
Date: Sun, 04 Aug 2024 20:43:21 -0700
Organization: None to speak of
Lines: 23
Message-ID: <87y15bd486.fsf@nosuchdomain.example.com>
References: <87wmlf2pq9.fsf@axel-reichert.de> <v8itr3$2soau$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Mon, 05 Aug 2024 05:43:22 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0106e7be1f7abc0c12bc3c2c5db7b0c0";
logging-data="527084"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19pr6kdWYUZlIP6zedM3El7"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:m4I6mt5pCGNT5ugD4nY5bH2b3FY=
sha1:0qvaLMZxilrasfHt4AJ07ulhR2A=
View all headers

Ed Morton <mortonspam@gmail.com> writes:
[...]
> It'd be annoying and more error-prone if every time you wanted to list
> files that start with `s` and end in `.txt` you had to write:
>
> ls ^s.*\.txt$
>
> instead of just:
>
> ls s*.txt
>
> So, it's just horses-for-courses - globbing patterns make filename
> matching simplest most of the time while regexps make text matching
> simplest most of the time.

It's far too late to change it, but perhaps if the syntax of regular
expressions had treated '.' as a normal character and used something
else to match a single character, they could have been used both for
text processing and file name matching.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */

Subject: Re: Globbing versus regular expressions
From: Axel Reichert
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Fri, 9 Aug 2024 22:02 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mail@axel-reichert.de (Axel Reichert)
Newsgroups: comp.unix.shell
Subject: Re: Globbing versus regular expressions
Date: Sat, 10 Aug 2024 00:02:40 +0200
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <877ccpnym7.fsf@axel-reichert.de>
References: <87wmlf2pq9.fsf@axel-reichert.de> <v8iujg$2soiv$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sat, 10 Aug 2024 00:02:41 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b412144678d95c2948f996a1f6fbcea3";
logging-data="218323"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DhGna18Ep2d38n1rOYYlElkVrEgHci0M="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:jRDz1kKKvLY2n7tkDtcea2KAasU=
sha1:8WAjUPIdIS96eYgfRb+dsKL9AaE=
View all headers

Ed Morton <mortonspam@gmail.com> writes:

> There's an IMO interesting Q&A about globs and regexps, including some
> history, at:
>
> https://unix.stackexchange.com/questions/136353/history-of-bash-globbing

Many thanks, very interesting. It essentially expands a little on all
the points brought forward here. There was a nice example that showed
how painful regexes can be for a simple globbing task.

Thanks also to the others who bothered to share their thoughts.

Somehow I expected Plan 9's shell, rc, to have a more consistent
approach, but it also features standard globbing pattern.

Best regards

Axel

Subject: Re: Globbing versus regular expressions
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Sat, 10 Aug 2024 00:33 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell
Subject: Re: Globbing versus regular expressions
Date: Sat, 10 Aug 2024 00:33:30 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <v96cgq$7s6e$6@dont-email.me>
References: <87wmlf2pq9.fsf@axel-reichert.de> <v8iujg$2soiv$1@dont-email.me>
<877ccpnym7.fsf@axel-reichert.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 10 Aug 2024 02:33:30 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0cdcc95047601bfdd95c13b1efe74c93";
logging-data="258254"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+gfz7awluwz9dcUshuVUCR"
User-Agent: Pan/0.159 (Vovchansk; )
Cancel-Lock: sha1:vbWW+XUniWTN/en10Iaft5cDhu4=
View all headers

On Sat, 10 Aug 2024 00:02:40 +0200, Axel Reichert wrote:

> Somehow I expected Plan 9's shell, rc, to have a more consistent
> approach, but it also features standard globbing pattern.

Plan 9 is one of those things you expect to have lots of new, clever stuff
in it, but it doesn’t.

1

rocksolid light 0.9.8
clearnet tor