From: Ricardo Wurmus <rekado@elephly.net>
To: Hartmut Goebel <h.goebel@crazy-compilers.com>
Cc: guix-devel@gnu.org
Subject: Re: How to reference external program used in shell-scripts?
Date: Thu, 08 Aug 2019 16:50:11 +0200 [thread overview]
Message-ID: <87pnlfww2k.fsf@elephly.net> (raw)
In-Reply-To: <72f51f57-3d1a-15f3-458b-cf036841c15a@crazy-compilers.com>
Hi Hartmut,
> Assume some program, shell-script, whatever is calling an external program.
> What is the correct way to reference this? Shall it become an absolute
> path, or just the basename.
this depends on what the user may reasonably expect from the script. If
it’s a core feature of the tool then I would expect to be able to use it
without having to manually install other packages.
If it’s a rare or optional feature it could be fine to use the basename
and assume that the user has the tool installed.
Generally, I try to make sure that required tools are either propagated
or that references to tools are made to absolute file names.
There is no hard rule.
--
Ricardo
next prev parent reply other threads:[~2019-08-08 14:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-08 13:14 How to reference external program used in shell-scripts? Hartmut Goebel
2019-08-08 14:50 ` Ricardo Wurmus [this message]
2019-08-09 8:03 ` Hartmut Goebel
2019-08-09 8:54 ` Ricardo Wurmus
2019-09-03 9:08 ` Hartmut Goebel
2019-09-03 10:27 ` Ricardo Wurmus
2019-09-03 13:01 ` Ludovic Courtès
2019-09-03 13:48 ` P via Development of GNU Guix and the GNU System distribution.
2019-09-08 19:41 ` Ricardo Wurmus
2019-09-08 18:37 ` Hartmut Goebel
2019-09-08 19:08 ` Ricardo Wurmus
2019-09-10 8:42 ` Konrad Hinsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pnlfww2k.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=guix-devel@gnu.org \
--cc=h.goebel@crazy-compilers.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).