[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set -x vs. n=($@)
From: |
alex xmb ratchev |
Subject: |
Re: set -x vs. n=($@) |
Date: |
Sun, 3 Sep 2023 20:58:15 +0200 |
On Sun, Sep 3, 2023, 20:57 Greg Wooledge <greg@wooledge.org> wrote:
> On Sun, Sep 03, 2023 at 08:39:25PM +0200, alex xmb ratchev wrote:
> > On Sun, Sep 3, 2023, 12:08 Dan Jacobson <jidanni@jidanni.org> wrote:
> >
> > > It's not fair:
> > > set -x a b c
> > >
> >
> > you may want -v
>
> *Sigh* No. set -v shows lines as they are being READ by the shell.
> set -x shows commands as they are being EXECUTED.
>
> set -v is almost never useful. It's especially unlikely to be useful
> in any script that uses functions or loops, as it only shows the function
> or the loop being READ, not being EXECUTED.
>
sorry ye , i had success with ' : $vars .. ' but thats not so good for var
assign
peace
>