On 4/9/21 3:08 PM, Craig Andrews wrote:
Bash Version: 5.1
Patch Level: 0
Release Status: release
Description:
With "set -u", invoking "which" results in the output of:
environment: line 1: _declare: unboundvariable
That should not happen, and does not happen, with prior versions
of bash.
I'm using Fedora 34 (beta).
Repeat-By:
Run this shell script:
#!/bin/bash
set -u
echo "$(which bash)"
`which' is not a bash builtin. It's probably a shell function that gets
loaded from one of your startup files.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/