From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id I7G+A7ZUXGACIAAAWB0awg (envelope-from ) for ; Thu, 25 Mar 2021 05:15:34 -0400 Received: by simark.ca (Postfix, from userid 112) id 006B71EF7C; Thu, 25 Mar 2021 05:15:33 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=MAILING_LIST_MULTI, RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 2255F1E789 for ; Thu, 25 Mar 2021 05:15:33 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 464693857C50; Thu, 25 Mar 2021 09:15:32 +0000 (GMT) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by sourceware.org (Postfix) with ESMTPS id 8544D3857C50 for ; Thu, 25 Mar 2021 09:15:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8544D3857C50 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=whitebox@nefkom.net Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4F5fb43bXtz1r6ms; Thu, 25 Mar 2021 10:15:28 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4F5fb42pBwz1qrxr; Thu, 25 Mar 2021 10:15:28 +0100 (CET) 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 DZ1bA4Et76L3; Thu, 25 Mar 2021 10:15:27 +0100 (CET) X-Auth-Info: ljT/1mGwU4/hWU62sYsPxUnnvHsaiigUhdUMwE/ZjpYwIFAgDylLNQWa/EsDE41K Received: from igel.home (ppp-46-244-184-22.dynamic.mnet-online.de [46.244.184.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 25 Mar 2021 10:15:27 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id E2DAD2C322E; Thu, 25 Mar 2021 10:15:26 +0100 (CET) From: Andreas Schwab To: Lancelot SIX via Gdb-patches Subject: Re: [PATCH] [PR gdb/27614] gdb-add-index fails on symlinks. References: <20210325004358.31291-1-lsix@lancelotsix.com> X-Yow: Two LITTLE black dots and one BIG black dot...nice 'n' FLUFFY!! Date: Thu, 25 Mar 2021 10:15:26 +0100 In-Reply-To: <20210325004358.31291-1-lsix@lancelotsix.com> (Lancelot SIX via Gdb-patches's message of "Thu, 25 Mar 2021 00:43:58 +0000") Message-ID: <87eeg3k30x.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lancelot SIX Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On Mär 25 2021, Lancelot SIX via Gdb-patches wrote: > +if test -L "$1"; then > + # This script will most likely fail if the argument is a symlink to a > + # program. In order to avoid that, try to follow the symlink. However, > + # readlink is not a standard POSIX tool so we have to check if it is > + # available. > + if command -v readlink &>/dev/null; then &> isn't standard shell. Andreas. -- 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."