From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by sourceware.org (Postfix) with ESMTPS id 26A17385840E for ; Wed, 26 Apr 2023 07:08:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 26A17385840E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nefkom.net Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Q5qhY604Pz1r1s0; Wed, 26 Apr 2023 09:08:13 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Q5qhY3nwZz1qqlS; Wed, 26 Apr 2023 09:08:13 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 44_ExKP99Xkh; Wed, 26 Apr 2023 09:08:12 +0200 (CEST) X-Auth-Info: 70E847lyGwBOKg288Si18mELFTcc5fQHEwCcN/PwxqqTN1ja6TOQ7owGFE4RWbO/ Received: from tiger.home (aftr-82-135-86-255.dynamic.mnet-online.de [82.135.86.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 26 Apr 2023 09:08:12 +0200 (CEST) Received: by tiger.home (Postfix, from userid 1000) id 5CFA51987FC; Wed, 26 Apr 2023 09:08:12 +0200 (CEST) From: Andreas Schwab To: Tom de Vries via Gdb-patches Cc: Tom Tromey , Tom de Vries Subject: Re: [pushed 1/4] [gdb/testsuite] Don't use string cat in gdb.dwarf2/dw2-abs-hi-pc.exp In-Reply-To: <97d43c1a-45d2-6ec5-001f-e20709342ce3@suse.de> (Tom de Vries via Gdb-patches's message of "Wed, 26 Apr 2023 08:34:44 +0200") References: <20230424124846.29580-1-tdevries@suse.de> <874jp5z0n8.fsf@tromey.com> <2a3587b4-98c4-263a-7deb-9530fbf06c57@suse.de> <878refyfgn.fsf@tromey.com> <97d43c1a-45d2-6ec5-001f-e20709342ce3@suse.de> X-Yow: WHOA!! Ken and Barbie are having TOO MUCH FUN!! It must be the NEGATIVE IONS!! Date: Wed, 26 Apr 2023 09:08:12 +0200 Message-ID: <877ctzjf37.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Apr 26 2023, Tom de Vries via Gdb-patches wrote: > FWIW, reading a bit more about it I get the impression also set is > idiomatic, so I came up with this: > ... > set res [lmap v $l { set v $v/c ; set v }] > ... > which works as well. You won't need the second set, though, since the first set already returns the assigned value. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."