Deutsch   English   Français   Italiano  
<v7ofkl$18d66$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.unix.shell
Subject: Re: bash aesthetics question: special characters in reg exp in [[ ...
 =~~ ... ]]
Date: Tue, 23 Jul 2024 16:44:37 +0200
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <v7ofkl$18d66$1@dont-email.me>
References: <v7mknf$3plab$1@news.xmission.com>
 <20240722153843.823@kylheku.com> <v7nu8t$15bon$1@dont-email.me>
 <v7o56b$3qeeq$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 23 Jul 2024 16:44:37 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="813c436e4ebdd14f30c57dbc5b95f784";
	logging-data="1324230"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18xgD9KN6Xo2N9xopGH8Bb3"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
Cancel-Lock: sha1:bRDRT79kk0bcGtgiOK+2hU6kCSs=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <v7o56b$3qeeq$1@news.xmission.com>
Bytes: 2061

On 23.07.2024 13:46, Kenny McCormack wrote:
> In article <v7nu8t$15bon$1@dont-email.me>,
> Janis Papanagnou  <janis_papanagnou+ng@hotmail.com> wrote:
> ...
>> Both (ksh & zsh) seem to show "better aesthetics".
> 
> Indeed, it does.  That is how it should work.

BTW, it's interesting that bash and zsh both reformat (sort
of pretty-print) the code (when using 'typeset -f'), only
that zsh keeps that literal '\n'. This may show a way (by
zsh example) how to follow Kaz' suggestion of patching the
bash. (But, frankly, I'm not sure it was meant seriously.)

But ksh displays it as it had been typed in; a raw format.
If you define your function, say, as multi-line code you
also see it that way, there's no processing at that point
(or the original retained as copy). I didn't expect that.

Janis