dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Harald van Dijk <harald@gigawatt.nl>
To: Pedro <pedro@cas.cat>, dash@vger.kernel.org
Subject: Re: [bug] dash eats one line
Date: Sun, 29 Nov 2020 14:28:26 +0000	[thread overview]
Message-ID: <2b7548cb-b5bb-9b1f-3ba1-b8341f1bb7a2@gigawatt.nl> (raw)
In-Reply-To: <54057fbc-b0c2-8b56-9194-e8384238f275@cas.cat>

Hi,

On 27/11/2020 12:16, Pedro wrote:
> Hi,
> 
> I am using dash on debian 10 buster (stable release) which according to 
> `dpkg -S dash` is `Version: 0.5.10.2-5`
> 
> evilham encountered a bug where dash eats one line but not in freebsd's 
> shell nor bash
> 
> attached you can find an example to reproduce it
> 
> execution of the example in my computer (enableUFWRules is not in new 
> line):
> 
>   ./dash-bug.sh
> # Enable UFW rules only if requested (it was)enableUFWRules
> 
>   $ bash dash-bug.sh
> # Enable UFW rules only if requested (it was)
> enableUFWRules

This looks like 
<https://www.mail-archive.com/dash@vger.kernel.org/msg01883.html>, which 
has been fixed in dash 0.5.11. I can confirm that your script produces 
the expected output with dash 0.5.11 as well as dash built from current Git.

Cheers,
Harald van Dijk

      reply	other threads:[~2020-11-29 14:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-27 12:16 [bug] dash eats one line Pedro
2020-11-29 14:28 ` Harald van Dijk [this message]

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=2b7548cb-b5bb-9b1f-3ba1-b8341f1bb7a2@gigawatt.nl \
    --to=harald@gigawatt.nl \
    --cc=dash@vger.kernel.org \
    --cc=pedro@cas.cat \
    /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;
as well as URLs for NNTP newsgroup(s).