Closed cherio closed 1 year ago
This was originally reported in Arch: https://bugs.archlinux.org/task/76501
this looks like a bug in autotools. i'm not setting interpreter by hands but set it through AC_PATH_TOOL macro in configure
I am not an expert in packaging and assembly. I do see the source file yad-settings.in
references bash
#! @BASH@
# -*- mode: sh -*-
however the distribution package in Arch contains the script with the first lines looking as
#! /bin/sh
# -*- mode: sh -*-
Do you think the problem is on the distribution (Arch) side? Should Arch build and packaging process change to generate correct shebang?
Sorry, as I said I am not an expert at this.
πΊπ¦πΊπ¦πΊπ¦
i guess i'd fixed this in v12.1
Arch main repo already got the fix. Thank you!
I am experiencing this issue in ArchLinux with /bin/sh symlinked to
dash
.yad-settings
declares itself as aPOSIX
compatible shell script with shebang#!/bin/sh
, however it looks like it is implemented to bebash
specific. Since/bin/sh
on any system is a symlink which can point to anyPOSIX
compatible shell (it is not required and shouldn't be expected to point tobash
), the shebang line should explicitly referencebash
, for instance#!/usr/bin/env bash
.