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: alex xmb ratchev
Subject: Re: non working code .. loop ends after one
Date: Thu, 2 Mar 2023 08:52:15 +0100

On Thu, Mar 2, 2023, 3:05 AM Kerin Millar <kfm@plushkava.net> wrote:

> 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.
>

yes yes , but my argument is declare is faster .. even if for this app /
script it doesnt matter much , i rather var-assign than printf , .. thanks
though
i like fancy special code ..
i learn this way

$ 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]