It's not fair:
set -x a b c
m=$@ n=($@)
== gives ==
+ m='a b c'
+ n=($@)
please either say
+ m=$@
+ n=($@)
or better:
+ m='a b c'
+ n=('a' 'b' 'c')
or metion on
https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html the
special exception.
GNU bash, version 5.2.15
On Sun, Sep 3, 2023, at 6:08 AM, Dan Jacobson wrote:
> please either say
> + m=$@
> + n=($@)
> or better:
> + m='a b c'
> + n=('a' 'b' 'c')
> or metion on
> https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
> the special exception.
This behavior is not specific to $@.
On Sun, Sep 3, 2023, 12:08 Dan Jacobson wrote:
> It's not fair:
> set -x a b c
>
you may want -v
m=$@ n=($@)
> == gives ==
> + m='a b c'
> + n=($@)
> please either say
> + m=$@
> + n=($@)
> or better:
> + m='a b c'
> + n=('a' 'b' 'c')
> or metion on
> https://www.gnu.org/software/bash/manual/ht
On Sun, Sep 03, 2023 at 08:39:25PM +0200, alex xmb ratchev wrote:
> On Sun, Sep 3, 2023, 12:08 Dan Jacobson 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.
On Sun, Sep 3, 2023, 20:57 Greg Wooledge wrote:
> On Sun, Sep 03, 2023 at 08:39:25PM +0200, alex xmb ratchev wrote:
> > On Sun, Sep 3, 2023, 12:08 Dan Jacobson wrote:
> >
> > > It's not fair:
> > > set -x a b c
> > >
> >
> > you may want -v
>
> *Sigh* No. set -v shows lines as they are being RE