Skip to content

Log full of "Invalid variable reference" on Fedora 34 #1841

@reddwarf69

Description

@reddwarf69

It may be related to https://src.fedoraproject.org/rpms/which/c/98662a9c460f663b1bef1887cfd28c6f7f1bfe5f?branch=f34, not sure. But the thing is that Fedora has https://src.fedoraproject.org/rpms/which/blob/f34/f/which2.sh in /etc/profile.d/which2.sh. AFAICT it works fine:

$ which ls
alias ls='ls --color=auto'
	/usr/bin/ls
$ which okular 
/usr/bin/okular
$

But the thing is that my CMake/Build log is full of this stuff:

[variant] Loaded new set of variants
[kit] Successfully loaded 2 kits from /home/reddwarf/.local/share/CMakeTools/cmake-tools-kits.json
[presetController] Successfully validated presets in /home/reddwarf/git/router_sdk/CMakePresets.json
[expand] Invalid variable reference ${which_declare} in string: () {  ( alias;
 eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"
}
[driver] Switching to configure preset: full
[expand] Invalid variable reference ${which_declare} in string: () {  ( alias;
 eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"

No idea how it got there.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Completed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions