FS#76501 - [yad] yad-settings errors out errors out when executed by other that bash shells

Attached to Project: Community Packages
Opened by Yuri Cherio (cherio) - Wednesday, 09 November 2022, 18:10 GMT
Last edited by Toolybird (Toolybird) - Sunday, 21 May 2023, 03:40 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

"yad-settings" declares itself as a POSIX compatible shell script with shebang "#!/bin/sh", however it looks like it is implemented to be run by bash only. /bin/sh on any system is a link which can be defaulted to any POSIX compatible shell. It is not required to point to bash.

The solution is to either make the script POSIX compatible (unlikely) or change the first line of the script to reflect the fact that the script can only be executed with bash.

Additional info:
* package version: 12.0-1

Steps to reproduce:
Run with any non-bash POSIX compatible shell, e.g.
/bin/dash -c /usr/bin/yad-settings
/bin/ksh -c /usr/bin/yad-settings
This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 21 May 2023, 03:40 GMT
Reason for closing:  Fixed
Additional comments about closing:  yad 12.1-1
Comment by Toolybird (Toolybird) - Thursday, 10 November 2022, 20:33 GMT
Was just about to ask "have you reported upstream?" but I now see you have done so [1]

[1] https://github.com/v1cont/yad/issues/198
Comment by Yuri Cherio (cherio) - Thursday, 10 November 2022, 20:36 GMT
Apologies, I meant to reference it here, but got sidetracked. Thanks!

Loading...