FS#48819 - [dialog] lsblk and \n messup the output

Attached to Project: Arch Linux
Opened by Amin (Gradiuss) - Tuesday, 05 April 2016, 15:01 GMT
Last edited by Evangelos Foutras (foutrelis) - Tuesday, 27 June 2017, 07:41 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Using lsblk command (not tested with others commands) with a \n and some text in an inputbox (not tested for others instructions) from dialog will messup the output of lsblk.

Additional info:
* package version(s) : Dialog (Version: 1.3-20160209), lsblk (util-linux 2.27.1)

Steps to reproduce:

[code]#!/bin/bash
dialog --inputbox "$(lsblk)\n Choose a disk" 10 60[/code]
   main.sh (0.8 KiB)
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Tuesday, 27 June 2017, 07:41 GMT
Reason for closing:  Not a bug
Additional comments about closing:  The '--cr-wrap' option seems to do what you want.
Comment by Doug Newgard (Scimmia) - Thursday, 07 April 2016, 15:14 GMT
What do you mean "messup the output"?

Edit: oh, I see, it no longer interprets linebreaks correctly. It doesn't like you mixing two different methods of denoting linebreaks.
Comment by Amin (Gradiuss) - Sunday, 10 April 2016, 12:32 GMT
Meaning it's its normal behavior or something not expected ?

Loading...