[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: When "set -u", "which" outputs environment: line 1: _declare: unboun
From: |
konsolebox |
Subject: |
Re: When "set -u", "which" outputs environment: line 1: _declare: unbound |
Date: |
Sat, 10 Apr 2021 04:19:54 +0800 |
On Sat, Apr 10, 2021 at 4:08 AM Craig Andrews <candrews@integralblue.com> wrote:
> Repeat-By:
> Run this shell script:
> #!/bin/bash
> set -u
> echo "$(which bash)"
Tested with vanilla bash 5.1.0 it works well with `/bin/bash` as
output. Maybe one of your builtins or external commands is a function.
Try `type which`.
--
konsolebox