Re: mksh: [bug] command line option -m ineffective
On Tue, May 08, 2018 at 04:44:00PM +0200, G.raud wrote: > My goal here is to check when job control is enabled; case (2) > is conform to the manpage as is your example; however case (1) > is not hence the bug report. Ah yes. I totally missed your point, sorry! Indeed: $ mksh -c 'sleep 1 & fg' # ok. mksh: fg: job control not enabled $ mksh -m -c 'sleep 1 & fg'# not ok. mksh: fg: job control not enabled Curiously, It works as expected with the -i option (which implies the job monitor): $ mksh -i -c 'fg' mksh: fg: %%: no such job As if '-m' was just ignored. You're also right for the xclock case; bash works as expected. Sorry again, Seb.
[BUG] New alias POSIX restriction breaks the hash built-in
Hello, It seems the R55 new alias definition policy prevents some commands from being find in the PATH: $ echo $PATH /usr/local/bin:/usr/bin:/bin $ ls /usr/bin/python* /usr/bin/python /usr/bin/python2-config /usr/bin/python-config /usr/bin/python2.7 /usr/bin/python2/usr/bin/python2.7-config $ hash python; echo $? 0 $ hash python2; echo $? 0 $ hash python2.7; echo $? mksh: alias: python2.7: invalid alias name 1 Even if it seems the dot is in the POSIX Portable Character Set and should hence be allowed, I think an illegaly defined alias should however not stop further searching. Take care! Seb.
Re: [Bug 1667506] [NEW] Sometimes ^C leaves tty in weird state
On Fri, Feb 24, 2017 at 09:30:23PM -, Thorsten Glaser wrote: > Seb dixit: > > >I can't reproduce it, mksh R54 with mpg123 1.23.4 work well. > > I have this one: > > High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3. > Version mpg123-0.59r-MirPorts-8 (1999/Jun/15). Written and copyrights by > Michael Hipp. My bad. I saw "launchpad", I thought "ubuntu", sorry. Coudn't it help if you were running it through another shell? If [b]ash properly reset the tty the problem would then be in mksh rather than in a weird behaving of mpg123, wouldn't it? Take care, Seb.
Re: [Bug 1667506] [NEW] Sometimes ^C leaves tty in weird state
On Thu, Feb 23, 2017 at 10:57:22PM -, Thorsten Glaser wrote: > I have absolutely no idea where that comes from, or how to > debug it. I suspect mpg123 lives for a bit longer after the ^C > and messes up tty state after the shell tried to restore it. > Or, there is a race condition in the shell making it not > restore this properly after the signal (which, after all, the > shell does get). I can't reproduce it, mksh R54 with mpg123 1.23.4 work well. Have you tried to switch the output module with the '-o' option? The default is likely to be pulseaudio, maybe mpg123 sometimes struggles to deal with it. That's just an idea, of course, but I would try alsa for a while. :) Take care, Seb.
Re: alias VS executable
On Sat, Oct 01, 2016 at 09:03:15PM +0200, Antoni V. wrote: Hi, > netstat -lantp | grep -i stab | awk -F/ '{print $2 $3}' | sort | uniq > >[…] > > 1- add it to .mkshrc as \alias using= > 2- create /usr/bin/using (chmod +x) and add the one liner to it > > Both will work the exact same way. > So I think, which one is better? Faster? Better: it depends from where you call it. When it's exclusively interactively from a terminal, I personaly make an alias to not encumber my PATH (more). Faster: don't bother, you can't however humanly notice it. (BTW, I think you might shrink it a bit: netstat -lantp | grep -i stab | awk -F/ '{print $2 $3}' | sort -u or, if you want to save the grep process: netstat -lantp | awk -F/ '/[sS][tT][aA][bB]/{print $2 $3}' | sort -u ) My 2 cents. ++ Seb.
Re: Trouble in the variable expansion
Le Sun, 17 Nov 2013 22:50:14 + (UTC) Thorsten Glaser a écrit: Seb dixit: [ ${x#X} = $y ] || echo BUG the 2nd! I think this must be … = $y to be fair. But that was not the problem. Actually, I should have used a constant in the second parts in all the tests, it would have been more accurate. And here are the results you get running it with different shells: tg@blau:~ $ mksh debug.sh a b c 3 2 1 tg@blau:~ $ mksh -c 'print $KSH_VERSION' @(#)MIRBSD KSH R48 2013/11/17 Fixed in CVS HEAD now. I wanted to test, but what I fetch with cvs by following the instructions from the mksh's web page does not compile. This is the only thing I get: In file included from lalloc.c:21:0: sh.h:671:24: fatal error: sh_flags.gen: No such file or directory compilation terminated Chair/keyboard interface problem (I'm not familiar at all with cvs) or not? :) Take care, Seb.