Re: Parallelization of shell scripts for 'configure' etc.

2022-06-14 Thread Jeffrey Walton
On Tue, Jun 14, 2022 at 11:15 PM Ángel wrote: > > On 2022-06-13 at 18:32 -0700, Paul Eggert wrote: > > Yes, all that could be done in theory, but it'd take a lot of > > hacking and it's been decades and it hasn't happened. > > > > I'd rather have shell scripts "just work" in parallel with a minimu

Auto-update program cache feature

2018-10-03 Thread Jeffrey Walton
Hi Everyone, I noticed a fair number of new Linux users have trouble with stale program caches. Users install a package from a package manager or sources and then are confused when the new package is not used. They do not realize they need to run 'bash -r'; and most don't know where to begin searc

Re: Auto-update program cache feature

2018-10-03 Thread Jeffrey Walton
On Wed, Oct 3, 2018 at 9:33 PM Eduardo A. Bustamante López wrote: > > On Wed, Oct 03, 2018 at 04:45:44PM -0400, Jeffrey Walton wrote: > > Hi Everyone, > > > > I noticed a fair number of new Linux users have trouble with stale > > program caches. Users install a pac

How to tell Bash multiple values are success?

2019-06-19 Thread Jeffrey Walton
Hi Everyone, I have a systemd service that automatically applies updates. Looking at the service history, the service reports failure when it installs updates due to this: if dnf -y update &>/dev/null then echo "Upgraded system" else echo "Failed to upgrade system"

Create an alias on the fly?

2020-03-30 Thread Jeffrey Walton
Hi Everyone, I'm testing some software from Master. My testing machines sometimes lack the distro tools like makeinfo. It results in things like this: ./bootstrap: 255: makeinfo: not found ./bootstrap: Error: 'makeinfo' not found I tried the MAKEINFO=true tricks but they did not work. H

Re: Create an alias on the fly?

2020-03-30 Thread Jeffrey Walton
On Mon, Mar 30, 2020 at 4:38 AM Andreas Kusalananda Kähäri wrote: > > On Mon, Mar 30, 2020 at 04:24:07AM -0400, Jeffrey Walton wrote: > > Hi Everyone, > > > > I'm testing some software from Master. My testing machines sometimes > > lack the distro tools like

Segfault in Bash

2020-07-14 Thread Jeffrey Walton
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: $ ./audit-libs.sh /home/jwalton/tmp/ok2delete/lib ./audit-libs.sh: line 17: 22929 Segmentation fault (core dumped) $(echo "$file" | grep

Use of `mktemp' is dangerous, better use `mkstemp'...

2021-01-14 Thread Jeffrey Walton
Hi Everyone, I'm building Bash 5.1 from sources. This may be of interest: /usr/bin/ld: ./lib/sh/libsh.a(tmpfile.o): in function `sh_mktmpname': /home/jwalton/Build-Scripts/bash-5.1/lib/sh/tmpfile.c:160: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' Jeff

Bash 5.1 and Ncurses

2021-01-14 Thread Jeffrey Walton
Hi Everyone, I configured Bash 5.1 with prefix=/usr/local, --with-curses and --enable-multibyte. The link failed with undefined references, like tputs. I have the wide char Ncurses built and installed in /usr/local. I found I needed to add -ltinfow to LIBS and LDLIBS for the build to succeed. I'm

[no subject]

2021-01-15 Thread Jeffrey Walton
Hi Everyone, I'm testing on Ubuntu 18.05 x86_64 fully patched. It looks like the man2html recipe is not using LDFLAGS: /usr/bin/cc -DHAVE_CONFIG_H -DSHELL -I/home/jwalton/Build-Scripts/bash-5.1 -I.. -I/home/jwalton/ok2delete-asan/include -DNDEBUG -DTEST_ASAN=1 -g2 -O2 -fsanitize=address -fno-omi

Re:

2021-01-15 Thread Jeffrey Walton
On Fri, Jan 15, 2021 at 4:33 PM Jeffrey Walton wrote: > > Hi Everyone, > > I'm testing on Ubuntu 18.05 x86_64 fully patched. It looks like the > man2html recipe is not using LDFLAGS: > > /usr/bin/cc -DHAVE_CONFIG_H -DSHELL > -I/home/jwalton/Build-Scripts/bash-5.1 -I.

Crash in malloc.c : internal_malloc under Asan

2021-01-15 Thread Jeffrey Walton
Hi Everyone, I'm trying to use an Asan-instrumented version of Bash for my shell. Bash is dying in startup code. The source file is malloc.c (missing from Bash sources at https://git.savannah.gnu.org/cgit/bash.git/tree/), and the function is internal_malloc. The Asan folks have a suspicion of mal