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
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- -
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.
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
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.
$ 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
Infinite recursion..
$ f() {
f
}
$ f
blows up as well.
-Otto
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. :)
Infinite recursion..
$ f() {
f
}
$ f
blows up as well.
-Otto
Fair enough.
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
10 matches
Mail list logo