I guess that's the right way to describe what I'm seeing:
[swilson@localhost ~]$ unset f; f=(aaa bbb ccc) declare -p f
declare -x f="(aaa bbb ccc)"
[swilson@localhost ~]$ unset f; f=("aaa" "bbb" "ccc") declare -p f
declare -x f="(aaa bbb ccc)"
[swilson@localhost ~]$ unset f; f=(aaa bbb ccc)
[swils
On Tue, Oct 10, 2017 at 08:00:58AM -0400, shawn wilson wrote:
> I guess that's the right way to describe what I'm seeing:
>
> [swilson@localhost ~]$ unset f; f=(aaa bbb ccc) declare -p f
> declare -x f="(aaa bbb ccc)"
You placed a string variable in the temporary execution environment of
the decl
On Tue, Oct 10, 2017 at 8:21 AM, Greg Wooledge wrote:
> On Tue, Oct 10, 2017 at 08:00:58AM -0400, shawn wilson wrote:
>> I guess that's the right way to describe what I'm seeing:
>>
>> [swilson@localhost ~]$ unset f; f=(aaa bbb ccc) declare -p f
>> declare -x f="(aaa bbb ccc)"
>
> You placed a str
On 10/10/2017 07:00 AM, shawn wilson wrote:
> I guess that's the right way to describe what I'm seeing:
>
> [swilson@localhost ~]$ unset f; f=(aaa bbb ccc) declare -p f
> declare -x f="(aaa bbb ccc)"
> [swilson@localhost ~]$ unset f; f=("aaa" "bbb" "ccc") declare -p f
> declare -x f="(aaa bbb ccc)
On Tue, Oct 10, 2017 at 09:05:55AM -0400, shawn wilson wrote:
> Nope, I knew how to correct it (as I showed in the last example), I
> just figured the other two should work.
"Work" how? You placed a variable in the TEMPORARY execution ENVIRONMENT
of a command. You can tell it's an environment va
On 10/10/17 9:06 AM, Dan Douglas wrote:
> Bash parses the array assignment as though it were valid while reading
> words, assignments, and redirects of the command.
Because at the time the parser reads the assignment, it has to assume
that it's a candidate for compound assignment. It's only whe
On 10/9/17 10:37 AM, Christian Brauner wrote:
> A common scenario where this happens is with /dev/console in containers.
> Usually container runtimes/managers will call openpty() on a ptmx device in
> the
> host's mount namespace to safely allocate a {p,t}ty master-slave pair since
> they
> can'
On Tue, Oct 10, 2017 at 5:44 PM, Chet Ramey wrote:
> On 10/9/17 10:37 AM, Christian Brauner wrote:
>
>> A common scenario where this happens is with /dev/console in containers.
>> Usually container runtimes/managers will call openpty() on a ptmx device in
>> the
>> host's mount namespace to safel
Hi,
today I was debugging performance issues with a 200KB bash script [1]
with bash-4.3 and 4.4
and it seems that much of it came from a function call that took 0.1
seconds (and it was done in a loop for 37000 files)
even though it basically just consisted of an
if [[ 0 != 0 ]] ; then
I also w
See:
${parameter@operator}
Parameter transformation. The expansion is either a
transforma-
tion of the value of parameter or information about
parameter
itself, depending on the value of operator. Each operator
is a
single letter:
10 matches
Mail list logo