help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: non working code .. loop ends after one


From: Kerin Millar
Subject: Re: non working code .. loop ends after one
Date: Thu, 2 Mar 2023 02:05:40 +0000

On Thu, 2 Mar 2023 00:07:55 +0100
alex xmb ratchev <fxmbsw7@gmail.com> wrote:

> i used declare [-a] "<definition>' to make bash parse the \<code>

For this, you could use printf.

$ sep='\n'; printf -v sep %b "$sep"; declare -p sep
declare -- sep=$'\n'

-- 
Kerin Millar



reply via email to

[Prev in Thread] Current Thread [Next in Thread]