bug-bash
[Top][All Lists]
Advanced

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

Re: set -x vs. n=($@)


From: Greg Wooledge
Subject: Re: set -x vs. n=($@)
Date: Sun, 3 Sep 2023 14:56:45 -0400

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.



reply via email to

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