[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: When "set -u", "which" outputs environment: line 1: _declare: unbou
From: |
Lawrence Velázquez |
Subject: |
Re: When "set -u", "which" outputs environment: line 1: _declare: unbound |
Date: |
Fri, 09 Apr 2021 17:11:09 -0400 |
User-agent: |
Cyrus-JMAP/3.5.0-alpha0-273-g8500d2492d-fm-20210323.002-g8500d249 |
On Fri, Apr 9, 2021, at 4:51 PM, Eli Schwartz wrote:
> Are you ready to have your day truly spoiled? Fedora's package for the
> external program GNU which, provides this /etc/profile.d/ script
> (automatically injected into the environment of any interactive shell
> sessions once you install GNU which -- how charming):
>
> https://src.fedoraproject.org/rpms/which/blob/rawhide/f/which2.sh
>
> Corresponding to the terrible advice from the GNU which manpage:
>
> https://man.archlinux.org/man/which.1#EXAMPLE
At least Fedora quotes $@. Small mercies.
vq