[PATCH] small test for Bug 12558
Rowland Penny
rpenny at samba.org
Mon Apr 10 13:01:32 UTC 2017
On Mon, 10 Apr 2017 21:59:14 +1000
Martin Schwenke via samba-technical <samba-technical at lists.samba.org>
wrote:
> On Sun, 9 Apr 2017 10:37:03 +0200, vl--- via samba-technical
> <samba-technical at lists.samba.org> wrote:
>
> > If someone know the shell quoting magic to get this under 80
> > columns, I'll be happy to change this :-)
>
> Not in the way it is currently done. The eval is there to expand
> "$@", which just seems crazy. In other places the only reason the
> command is assigned to a variable is so it can be printed before
> running it. You're not doing that in this case so you could just put
> the command in the sub-shell.
>
In an attempt to further understand and expand my 'bash' knowledge, I
have been examining the script in question and I cannot understand why
'$@' is being used in the way it is ???
My understanding is that it is an array of all the arguments passed to
a script, so why is it being used in the way it is, especially as line
25 is 'shift 11' which effectively deletes the contents of '$@'
Am I missing something obvious here, or is my understanding wrong ?
Rowland
More information about the samba-technical
mailing list