Hi! Fun test for ya (--with-libedit): $ printf '%s\n' id 'fc 1' a ls . w q 'fc -s 1' | src/dash -i $ uid=1000(nabijaczleweli) gid=100(users) groups=100(users) $ 3 6 uid=1000(nabijaczleweli) gid=100(users) groups=100(users) 002 autogen.sh compile config.status install-sh missing q.cpp q-ksh-stderr q-zsh-stdout stamp-h1 003 autom4te.cache config.h configure ll q q-dash2-stderr q-ksh-stdout reject_filtered_cmd test.sh 004 back config.h.in configure.ac Makefile q-bash-stderr q-dash2-stdout q-mksh-stderr sh-stdin.sh traptest 005 ChangeLog config.h.in~ COPYING Makefile.am q-bash-stdout q-dash-stderr q-mksh-stdout sh-stdin.sh-f tst.sh aclocal.m4 ChangeLog.O config.log depcomp Makefile.in q.c q-dash-stdout q-zsh-stderr src x1.sh $ id uid=1000(nabijaczleweli) gid=100(users) groups=100(users) fc -s 1 id uid=1000(nabijaczleweli) gid=100(users) groups=100(users) id uid=1000(nabijaczleweli) gid=100(users) groups=100(users) id uid=1000(nabijaczleweli) gid=100(users) groups=100(users) id uid=1000(nabijaczleweli) gid=100(users) groups=100(users) id uid=1000(nabijaczleweli) gid=100(users) groups=100(users) id uid=1000(nabijaczleweli) gid=100(users) groups=100(users) id uid=1000(nabijaczleweli) gid=100(users) groups=100(users) id uid=1000(nabijaczleweli) gid=100(users) groups=100(users) id uid=1000(nabijaczleweli) gid=100(users) groups=100(users) id uid=1000(nabijaczleweli) gid=100(users) groups=100(users) id ... ^C $ src/dash: 1: Cannot set tty process group (No such process) Interactively, if you ^C you can then $ fc -l 426 id 427 id 428 id 429 id 430 id 431 id 432 id 433 id 434 id 435 id 436 id 437 id 438 id 439 id 440 id 441 id (or, as the case may be, something in the 30000 range) of the first command in the history entry. I've never used the POSIX history mechanism so idk what the correct thing it should do there is, but it's probably not this. libedit 3.1-20191231-2+b1, dash trunk (f96ec8765cf37eb0c222a563de2f767ebfbf56db). Best, наб
Attachment:
signature.asc
Description: PGP signature