Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

There's got to be more to life than compile-and-go.


devel / comp.unix.shell / Re: ksh93 bugs

SubjectAuthor
* ksh93 bugsEli the Bearded
`* Re: ksh93 bugsJanis Papanagnou
 +- Re: ksh93 bugsKenny McCormack
 `- Re: ksh93 bugsEli the Bearded

1
ksh93 bugs

<eli$2106161522@qaz.wtf>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3945&group=comp.unix.shell#3945

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!qz!not-for-mail
From: *...@eli.users.panix.com (Eli the Bearded)
Newsgroups: comp.unix.shell
Subject: ksh93 bugs
Date: Wed, 16 Jun 2021 19:24:23 +0000 (UTC)
Organization: Some absurd concept
Lines: 36
Message-ID: <eli$2106161522@qaz.wtf>
NNTP-Posting-Host: panix5.panix.com
X-Trace: reader1.panix.com 1623871463 16780 166.84.1.5 (16 Jun 2021 19:24:23 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Wed, 16 Jun 2021 19:24:23 +0000 (UTC)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
User-Agent: Vectrex rn 2.1 (beta)
 by: Eli the Bearded - Wed, 16 Jun 2021 19:24 UTC

These might be well known, but they are annoying things I've encountered
on my own without looking for buglists.

Long time grief for me "cd ../.dotdir" doesn't work:

$ cd ~/tmp
$ ls -ld ../.trn
drwx--x--x 4 eli users 17 May 28 16:13 ../.trn
$ cd ../.trn
/usr/local/bin/ksh93: cd: /net/u/3/e/eli/trn: [No such file or directory]
$ cd ..; cd .trn
$ pwd
/net/u/3/e/eli/.trn
$

That example is "Version AJM 93u+ 2012-08-01" running at Panix, which is
a Netbsd 9.1 system. I've duplicated it on Linux (Ubuntu) with the same
ksh93 version.

Today:

$ echo jjj > /tmp/in
$ sed -e 's/jjj/'$(date +%s)/ < /tmp/in
1623871399
$ echo jjj | sed -e 's/jjj/'$(date +%s)/
sed: sed: cannot execute [Exec format error]
$

Tested and seen with "Version AJM 93u+ 2012-08-01" on Panix's Netbsd and
Linux (Ubuntu 18.04.5 LTS). I tried with explicit paths to the programs
(Netbsd: [/bin/echo, /usr/bin/sed/, /bin/date], Linux: [/bin/echo,
/bin/sed/, /bin/date]) with same results.

Elijah
------
uses "jjj" more than "foo" for QWERTY reasons

Re: ksh93 bugs

<sae1e2$3l3$1@news-1.m-online.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3947&group=comp.unix.shell#3947

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!news.karotte.org!news.space.net!news.m-online.net!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell
Subject: Re: ksh93 bugs
Date: Thu, 17 Jun 2021 01:28:02 +0200
Organization: (posted via) M-net Telekommunikations GmbH
Lines: 56
Message-ID: <sae1e2$3l3$1@news-1.m-online.net>
References: <eli$2106161522@qaz.wtf>
NNTP-Posting-Host: 2001:a61:252a:da01:21f3:df9e:4c49:6ab7
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
X-Trace: news-1.m-online.net 1623886082 3747 2001:a61:252a:da01:21f3:df9e:4c49:6ab7 (16 Jun 2021 23:28:02 GMT)
X-Complaints-To: news@news-1.m-online.net
NNTP-Posting-Date: Wed, 16 Jun 2021 23:28:02 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
X-Enigmail-Draft-Status: N1110
In-Reply-To: <eli$2106161522@qaz.wtf>
 by: Janis Papanagnou - Wed, 16 Jun 2021 23:28 UTC

On 16.06.2021 21:24, Eli the Bearded wrote:
> These might be well known, but they are annoying things I've encountered
> on my own without looking for buglists.
>
> Long time grief for me "cd ../.dotdir" doesn't work:
>
> $ cd ~/tmp
> $ ls -ld ../.trn
> drwx--x--x 4 eli users 17 May 28 16:13 ../.trn
> $ cd ../.trn
> /usr/local/bin/ksh93: cd: /net/u/3/e/eli/trn: [No such file or directory]
> $ cd ..; cd .trn
> $ pwd
> /net/u/3/e/eli/.trn
> $
>
> That example is "Version AJM 93u+ 2012-08-01" running at Panix, which is
> a Netbsd 9.1 system. I've duplicated it on Linux (Ubuntu) with the same
> ksh93 version.
>
> Today:
>
> $ echo jjj > /tmp/in
> $ sed -e 's/jjj/'$(date +%s)/ < /tmp/in
> 1623871399
> $ echo jjj | sed -e 's/jjj/'$(date +%s)/
> sed: sed: cannot execute [Exec format error]
> $
>
> Tested and seen with "Version AJM 93u+ 2012-08-01" on Panix's Netbsd and
> Linux (Ubuntu 18.04.5 LTS). I tried with explicit paths to the programs
> (Netbsd: [/bin/echo, /usr/bin/sed/, /bin/date], Linux: [/bin/echo,
> /bin/sed/, /bin/date]) with same results.
>
> Elijah
> ------
> uses "jjj" more than "foo" for QWERTY reasons
>

Are you sure that your second test case is a shell issue (and not an OS
and/or configuration issue)? It works for me at least...

$ echo jjj > /tmp/in
$ sed -e 's/jjj/'$(date +%s)/ < /tmp/in
1623885000
$ echo jjj | sed -e 's/jjj/'$(date +%s)/
1623885009
$ Version AJM 93u+ 2012-08-01

But I can reproduce the error with your first test case.
Using the recently posted ksh93u+m version that error seems to be fixed
there. - Is it an option for you to switch the shell version?

Janis

Re: ksh93 bugs

<saecoh$2a1gt$1@news.xmission.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3948&group=comp.unix.shell#3948

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell
Subject: Re: ksh93 bugs
Date: Thu, 17 Jun 2021 02:41:21 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <saecoh$2a1gt$1@news.xmission.com>
References: <eli$2106161522@qaz.wtf> <sae1e2$3l3$1@news-1.m-online.net>
Injection-Date: Thu, 17 Jun 2021 02:41:21 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="2426397"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Thu, 17 Jun 2021 02:41 UTC

In article <sae1e2$3l3$1@news-1.m-online.net>,
Janis Papanagnou <janis_papanagnou@hotmail.com> wrote:
....
>Are you sure that your second test case is a shell issue (and not an OS
>and/or configuration issue)? It works for me at least...

I get the same result as Eli does, testing with ksh93 on a Ubuntu system.

Also, it does the right thing under bash.

So, definitely a shell issue.

--
A pervert, a racist, and a con man walk into a bar...

Bartender says, "What will you have, Donald!"

Re: ksh93 bugs

<eli$2106170112@qaz.wtf>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3949&group=comp.unix.shell#3949

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!qz!not-for-mail
From: *...@eli.users.panix.com (Eli the Bearded)
Newsgroups: comp.unix.shell
Subject: Re: ksh93 bugs
Date: Thu, 17 Jun 2021 05:36:47 +0000 (UTC)
Organization: Some absurd concept
Lines: 31
Message-ID: <eli$2106170112@qaz.wtf>
References: <eli$2106161522@qaz.wtf> <sae1e2$3l3$1@news-1.m-online.net>
NNTP-Posting-Host: panix5.panix.com
X-Trace: reader1.panix.com 1623908207 16787 166.84.1.5 (17 Jun 2021 05:36:47 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Thu, 17 Jun 2021 05:36:47 +0000 (UTC)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
User-Agent: Vectrex rn 2.1 (beta)
 by: Eli the Bearded - Thu, 17 Jun 2021 05:36 UTC

In comp.unix.shell, Janis Papanagnou <janis_papanagnou@hotmail.com> wrote:
> On 16.06.2021 21:24, Eli the Bearded wrote:
> > $ echo jjj | sed -e 's/jjj/'$(date +%s)/
> > sed: sed: cannot execute [Exec format error]
> > $
> >
> > Tested and seen with "Version AJM 93u+ 2012-08-01" on Panix's Netbsd and
> > Linux (Ubuntu 18.04.5 LTS).
> Are you sure that your second test case is a shell issue (and not an OS
> and/or configuration issue)? It works for me at least...

Probably a shell issue when the same problem happens on Linux and
Netbsd. It's not the same binary or library, and possibly a different
compiler (don't know if clang or not on Netbsd).

But, including yours and Kenny McCormack's follow-up here, I've seen
three more test results. Two worked, one didn't. So that's 4 of 6
failed on the 'echo | sed $()' command.

> But I can reproduce the error with your first test case.
> Using the recently posted ksh93u+m version that error seems to be fixed
> there. - Is it an option for you to switch the shell version?

I log in to a lot of machines, so having the distribution version(s)
work is my preference. Also, since login shells are special (see chsh
and /etc/shells), replacing them is more work. I can't just drop a
binary in ~/bin/ and be done with it.

Elijah
------
not a fan of the xdg user-dirs "reform"

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor