Path: csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: =?UTF-8?B?0KjQutGW0L/QtdGAINCU0LXRgdC90LA=?= Newsgroups: gnu.bash.bug Subject: Bug with new lines Date: Mon, 24 Aug 2020 22:05:24 +0300 Lines: 20 Approved: bug-bash@gnu.org Message-ID: References: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: usenet.stanford.edu 1598301721 16238 209.51.188.17 (24 Aug 2020 20:42:01 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=SG/oo2v6Ycr7zSxpFwV3SEzWnFd8FR3TQRwfc++YzPo=; b=ve9DJHS7YUYk2ElSL2RxLyPZG2ur8cCVd0TicdG9GejvN0bOCAu3F4SvMI32u1u2Ty A36DcWNBPm0yhNW/rHoQDnx8aDQcfRmizQwB7KBAtDCejcF4iWDZpemRRSTq0r3jO8KQ IXbmu9fG6SEngVok3e5GRMVU2IZOuplIHXmR+mu30avgJbUCe0cNzH628Ipxp77Rr2yX /zX/WP7+oKIBdT0uYWXmL432g90IlO2/5KJLR698ta6KyyZwqTYrzwkJFfF0wH8ypdmT tIyHT1SFJq9HTNW7FP1aAApyj040rE96785t9opJTOTNq+slO5fCKNwPtYs55OFMEMGT qQtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=SG/oo2v6Ycr7zSxpFwV3SEzWnFd8FR3TQRwfc++YzPo=; b=GJHULwqnacqtMrNfOBxWWORNAdCw5U94jkIZFJzjcI2uPHcE1MQoTeof8m/1Mp78bl ygww0Iqi79TJy/FHgaDaOaIajrlO0FBfaToYtnXeCZadwO9m8r1wu1YpxPHC4Mvoi1Nk vPmEhsMURCyxsbHb3ARHGIywS8U43OYmfJcTdRmPvbZFJfjYmRwAyxJ+mk1EkoGUkyoa UbTvOy+1oTHDORg4mv12yqCO3S8oriPy7X0YTJTquuNfTNp0zuB+PdVPYXBLNrPKx5i4 BUGqniOd2GyjOuL3vML2Ot8SCs33iPJhv9MuxvANGgKvqdb860C7dNeHlpZ9yK/zTc4q ZdAQ== X-Gm-Message-State: AOAM5315kzbg7uSurHST+mV6TjhQDzw5mtnEO8wkdkyLE3eoOrboezTB uPghEXzJhWGXq90+Zl3TCp7RrtmEbwDs7mAVyqPxqHzZuM/JbA== X-Google-Smtp-Source: ABdhPJwHFkbv6G3NG+rTxI9xleCCfZXSw3hRnaR7zuJMNl8O8HuA3fXqSDewFPcT7Vx7CB8YMLOaPdoh6ZPiCWG7I00= X-Received: by 2002:a63:8948:: with SMTP id v69mr4151039pgd.261.1598295936530; Mon, 24 Aug 2020 12:05:36 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=shkiper.d1000@gmail.com; helo=mail-pg1-x536.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 24 Aug 2020 16:41:59 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: Xref: csiph.com gnu.bash.bug:16809 Hello! If I use something like `user@localhost:/folder$ echo -n 123`, then in a new line before 'user...' I see '123', but it's yet normal, but if I use something like `user@localhost:/folder$ echo -n $(echo 123)` or `user@localhost:/folder$ printf %s 123`, it may seem that everything is in order, but if I tap up (to copy previous command) and then tap down (to back), Bash will leave from start so many chars, like 'user@localhost:/fold= er$ ' has, i.e., I'll get 'user@localhost:/folde'. The only way to repair it is to press "enter". If I just press up after `user@localhost:/folder$ printf %s 123`, then nothing unusual happens =E2=80=94 it appends the previous com= mand after '...$ ', like usual ('123' in the beginning doesn't disappear). If I tap it again, some many times, again nothing unusual, but once it will cut the ending of 'user@localhost:/folder$ '. I don't know exactly where the logic is. If I tap up twice or more, but the ending yes hasn't been clipped, I can tap down and it won't be clipped, for except the last tap, when I get the current command. Best regards, Shkiper Desna.