Re: ksh: bug in parameter substitutions "#" and "%"?

2016-05-08 Thread Fabian Raetz
On Sun, May 08, 2016 at 04:34:52PM +0200, Fabian Raetz wrote: > Hi, > > while porting git-flow [0] to OpenBSD i've found that the following two > examples behave differently in bash(1) and ksh(1). > > > subst.sh > - > echo "$1, $2, ${1#$2}" > echo "$1, $2, ${1%$2}" > > $ bash

ksh: bug in parameter substitutions "#" and "%"?

2016-05-08 Thread Fabian Raetz
Hi, while porting git-flow [0] to OpenBSD i've found that the following two examples behave differently in bash(1) and ksh(1). subst.sh - echo "$1, $2, ${1#$2}" echo "$1, $2, ${1%$2}" $ bash subst.sh -start- - -start-, -, start- -start-, -, -start $ ksh subst.sh -start- -

ksh bug

2013-01-24 Thread janis
Hello! If I type r r in console or xterm, like: $ r r I get ksh.core. It works on i386 5.2 and amd64 current.

Re: ksh bug

2013-01-24 Thread David Coppa
On Thu, 24 Jan 2013, ja...@cieti.lv wrote: Hello! If I type r r in console or xterm, like: $ r r I get ksh.core. It works on i386 5.2 and amd64 current. Sure? I'm on amd64 -current and don't have this bug: dcoppa@latitude:~$ r r rm *orig rm: *orig: No such file or directory

Re: ksh bug

2013-01-24 Thread Vadim Zhukov
24.01.2013 15:38 пользователь ja...@cieti.lv написал: Hello! If I type r r in console or xterm, like: $ r r I get ksh.core. It works on i386 5.2 and amd64 current. Check output of which r and alias | grep ^r= commands first. And, please, post dmesg.

Re: ksh bug

2013-01-24 Thread janis
$ which r which: r: Command not found. $ alias | grep ^r= r='fc -e -' I forgot to mention, that r r crashes ksh if run in a fresh terminal. It works on all my openbsd boxes. dmesg: OpenBSD 5.2-current (GENERIC.MP) #0: Tue Jan 22 11:57:29 EET 2013

Re: ksh bug

2013-01-24 Thread Otto Moerbeek
Infinite recursion.. $ f() { f } $ f blows up as well. -Otto

Re: ksh bug

2013-01-24 Thread Vadim Zhukov
24.01.2013 16:08 пользователь Otto Moerbeek o...@drijf.net написал: Infinite recursion.. $ f() { f } $ f blows up as well. Yes, but cyclic fc -e - will kill your history as a bonus. :)

Re: ksh bug

2013-01-24 Thread janis
Infinite recursion.. $ f() { f } $ f blows up as well. -Otto Fair enough.

Re: ksh bug

2013-01-24 Thread Juan Francisco Cantero Hurtado
On Thu, Jan 24, 2013 at 12:14:28PM +0200, ja...@cieti.lv wrote: Hello! If I type r r in console or xterm, like: $ r r I get ksh.core. It works on i386 5.2 and amd64 current. Read the man page of ksh. You're running a infinite loop. -- Juan Francisco Cantero Hurtado http://juanfra.info