Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Ilkka Virta Newsgroups: gnu.bash.bug Subject: Re: Segfault in Bash Date: Tue, 14 Jul 2020 18:55:14 +0300 Lines: 22 Approved: bug-bash@gnu.org Message-ID: References: <036bbb18-fba6-71e6-4731-7a3dc81c2752@iki.fi> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1594742088 15649 209.51.188.17 (14 Jul 2020 15:54:48 GMT) X-Complaints-To: action@cs.stanford.edu To: noloader@gmail.com, bug-bash@gnu.org Envelope-to: bug-bash@gnu.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: Content-Language: en-US X-SASI-RCODE: 200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; h=subject:to:references:from:message-id:date:mime-version:in-reply-to:content-type:content-transfer-encoding; s=smtp; bh=piRjBMHClEiLp35q+y7Gr0GnCLSfojs4CVxPu0aMQmU=; b=ww6QAUFCcnhrz2beZMlMdm5FpNP2YgK8f4uU8EoB6L2vU+PY+bRKj9u6qs9h0wq2f4+qXhay3hXbBidqPsjq/ao2zwm1Sdj1Kx0SbE859yoh3UBW1+Q2G7tZq/pdzCWv0nKGFuZE5Jc4CNtCLCI/RDP+TXhvjgWUpa3mcGTcCCf3WXcgjnL/lmCzCiHi8B0+PNMARgSMIl9XIVZ3RtzeOON5Ch0RiKpFN4RzML8w4Upt0bG0EP2o30Tm569DwOCkC3PL24QJDf3dwyjV/E7ZZQImumUzS55zGjE8y3NqJDEpAGgUOQr7CjMSdZm6/1VadgTsPS4fxv9UJpEt2wU9YQ== Received-SPF: neutral client-ip=157.24.2.104; envelope-from=itvirta@iki.fi; helo=smtp-in-2.cc.lut.fi X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/14 11:54:39 X-ACL-Warn: Detected OS = FreeBSD 8.x X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <036bbb18-fba6-71e6-4731-7a3dc81c2752@iki.fi> X-Mailman-Original-References: Xref: csiph.com gnu.bash.bug:16569 On 14.7. 13:32, Jeffrey Walton wrote: > Hi Everyone, > > I'm working on a script to find all shared objects in a directory. A > filename should match the RE '*.so$'. I thought I would pipe it to > grep: > IFS="" find "$dir" -name '*.so' -print | while read -r file > do > if ! $(echo "$file" | grep -E "*.so$"); then continue; fi > echo "library: $file" > > done Are you trying to find the .so files, or run them for some tests? Because it looks to me that you're running whatever that command substitution outputs, and not all dynamic libraries are made for that. -- Ilkka Virta / itvirta@iki.fi