public inbox for dash@vger.kernel.org
 help / color / mirror / Atom feed
From: avidseeker@disroot.org
To: Dash Mailing List <dash@vger.kernel.org>
Subject: fc -s causes infinite loop
Date: Fri, 02 Jan 2026 20:18:25 +0000	[thread overview]
Message-ID: <KJFldfHRfPi3GtR2lgeOY1U4TdB3PqG4@disroot.org> (raw)

I'm trying to mimic zsh re-run ("r") behavior. The Posix way for that is
fc -s which works as expected in bash and zsh when aliased as alias r="fc -s"

$ pacman -Q dash
dash 0.5.12-1
$ dash
$ echo test
$ fc -s
test
echo test
test
echo test
test
echo test
test
echo test
test
echo test
test
echo test
....

Avid

             reply	other threads:[~2026-01-02 20:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-02 20:18 avidseeker [this message]
2026-01-28  4:47 ` fc -s causes infinite loop Herbert Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=KJFldfHRfPi3GtR2lgeOY1U4TdB3PqG4@disroot.org \
    --to=avidseeker@disroot.org \
    --cc=dash@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox