Re: [PATCH v2] linguas: Ensure that linguas.sh runs from the directory that it resides

Daniel Kiper <[email protected]>
Newsgroups org.gnu.grub-devel
Message-ID <[email protected]>
On Sun, Nov 16, 2025 at 10:23:41PM -0600, Glenn Washburn wrote:
> The script assumes that it is run from the root of the source tree,
> which is where it is located. So this should be enforced to prevent
> accidental misuses.
>
> realpath is used instead of readlink as that is recommended in Debian's
> readlink manpage since at least Debian 11. Also, use the shell variable's
> parameter expansion for removing a suffix pattern to get the directory
> in which the script resides. This is preferable to using the dirname binary
> as it avoids creating a new process.
>
> Signed-off-by: Glenn Washburn <[email protected]>

Reviewed-by: Daniel Kiper <[email protected]>

Daniel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.