From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 9720 invoked from network); 16 Apr 2020 00:06:51 -0000 Received-SPF: pass (primenet.com.au: domain of zsh.org designates 203.24.36.2 as permitted sender) receiver=inbox.vuxu.org; client-ip=203.24.36.2 envelope-from= Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with UTF8ESMTPZ; 16 Apr 2020 00:06:51 -0000 Received: (qmail 10129 invoked by alias); 16 Apr 2020 00:06:41 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24777 Received: (qmail 779 invoked by uid 1010); 16 Apr 2020 00:06:41 -0000 X-Qmail-Scanner-Diagnostics: from mail-il1-f170.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25779. spamassassin: 3.4.4. Clear:RC:0(209.85.166.170):SA:0(-2.0/5.0):. Processed in 2.341641 secs); 16 Apr 2020 00:06:41 -0000 X-Envelope-From: pierpaolog@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.170 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XWioSMbJrk9m5tXOt/AfnB3rzto/7G5nKbbBCkvxlKI=; b=UqwGc6UOvDKQWcmARQ29zL0pZZ03TA8y0DcbPW0LnI1rgvjfw/aCRDJfncqjT0ov+Q y1TEHddDkDM7CpgGGMMBcsYAO0Ck/Uulg7xG0wpfKfJ26/FPrEAD9XKT8BiBQ1z+2Fkt Pzq/aVfoYSg1O3gVCAvdZpUeQem6AaBzHcsuanYk0tWrP+c2HL0gIUWPhYiTjSSFypKp zJRT1J9JlPcG336jvwMjTOmAjtJbUjrp/kat1iBzmL9XTCs7StqkQy16N+wFYOPBtpFm FpCUPl9EfM7jdIjuc9iBoNQuU8Aw3G8eeZ9pnKzFx9eufDSXCdosWaJ1YHzDaocdo0O8 e4aA== X-Gm-Message-State: AGi0PuYQr3byr+JOKZAzr+b9qG/1xH8pFg4ax7NbK0F5pad98HzAetub sPB1BFVJsPyn7Q4K0eT0KQffTEeEcV/FdWL7wvqGqaGN X-Google-Smtp-Source: APiQypLicqZbptdr6PdHa8gdXLJGJ0tOkhMPb4/VCBZ058sc0i3dJ2PeFGezc8yXHFNStxrhJspvsOK4BdLjznAdmb0= X-Received: by 2002:a92:351a:: with SMTP id c26mr8422649ila.141.1586995565828; Wed, 15 Apr 2020 17:06:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pier Paolo Grassi Date: Thu, 16 Apr 2020 02:05:28 +0200 Message-ID: Subject: Re: indirect assignment to array To: Bart Schaefer Cc: Zsh-Users List Content-Type: multipart/alternative; boundary="000000000000f61db205a35d3281" --000000000000f61db205a35d3281 Content-Type: text/plain; charset="UTF-8" I see, for debug purposes it works indeed, but I don't have the output of typeset +m that would have printed array for array parameters. I wanted to capture that output to test for variables of type array. Is there a way to test if a variable is of type array? regards Pier Paolo Grassi linkedin: https://www.linkedin.com/in/pier-paolo-grassi-19300217 founder: https://www.meetup.com/it-IT/Machine-Learning-TO Il giorno gio 16 apr 2020 alle ore 01:55 Bart Schaefer < schaefer@brasslantern.com> ha scritto: > On Wed, Apr 15, 2020 at 4:43 PM Pier Paolo Grassi > wrote: > > > > is there a way to use typeset from functions to print out the definition > of > > global variables? > > typeset -p should do it, as long as a parameter of the same name has > not already been declared local. > --000000000000f61db205a35d3281--