Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16569

Re: Segfault in Bash

From Ilkka Virta <itvirta@iki.fi>
Newsgroups gnu.bash.bug
Subject Re: Segfault in Bash
Date 2020-07-14 18:55 +0300
Message-ID <mailman.202.1594742088.2306.bug-bash@gnu.org> (permalink)
References <CAH8yC8nB5fhvvdD1bCUsgNzNTni4ixkjDbfeKQLNVqZ71HpxBg@mail.gmail.com> <036bbb18-fba6-71e6-4731-7a3dc81c2752@iki.fi>

Show all headers | View raw


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

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Segfault in Bash Ilkka Virta <itvirta@iki.fi> - 2020-07-14 18:55 +0300

csiph-web