unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: Alex Kost <alezost@gmail.com>
Cc: Guix-devel <guix-devel@gnu.org>, Federico Beffa <beffa@ieee.org>
Subject: Re: [PATCH] gnu: aspell: Wrap binary to find dictionaries.
Date: Sat, 9 Jan 2016 15:29:29 -0500	[thread overview]
Message-ID: <20160109202929.GA30687@jasmine> (raw)
In-Reply-To: <87r3hqogwv.fsf@gmail.com>

On Sat, Jan 09, 2016 at 07:29:20PM +0300, Alex Kost wrote:
> >> From e183f8e473b97406968ecbda9fb13ebdf60963ec Mon Sep 17 00:00:00 2001
> >> From: Federico Beffa <beffa@fbengineering.ch>
> >> Date: Fri, 8 Jan 2016 14:23:12 +0100
> >> Subject: [PATCH 11/11] gnu: aspell: Wrap binary to find dictionaries.
> >>
> >> * gnu/packages/aspell.scm (aspell): Add 'wrap-aspell phase.
>                                            'wrap-aspell' phase.
> Typo --------------------------------------------------^
> 
> [...]
> >> +               (wrap-program bin/aspell
> >> +                 '("ASPELL_CONF" "" =
> >> +                   ("${ASPELL_CONF:-\"dict-dir ${GUIX_PROFILE:-$HOME/.guix-profile}/lib/aspell\"}")))))))))
> >
> > Just to clarify: what if I would like to run aspell with my own
> > ASPELL_CONF.  Will it work or will this default value override my own?
> > I mean I want to run aspell like this:
> >
> >   ASPELL_CONF=<something> aspell
> >
> > Will aspell be started with my <something>?
> 
> Sorry for being lazy, now I see that it will work.  Thanks to you (and
> to the bash manual) for introducing me to ${parameter:-word} construct.

For reference, this useful feature is 'parameter expansion' and it is in
the POSIX spec:
http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_02

> 
> -- 
> Alex
> 

  reply	other threads:[~2016-01-09 20:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-09 10:46 [PATCH] gnu: aspell: Wrap binary to find dictionaries Federico Beffa
2016-01-09 15:43 ` Alex Kost
2016-01-09 16:29   ` Alex Kost
2016-01-09 20:29     ` Leo Famulari [this message]
2016-01-10 20:48 ` Ludovic Courtès
2016-02-03  8:21 ` Ludovic Courtès
2016-02-03  9:12   ` Federico Beffa
2016-02-03 21:53     ` Ludovic Courtès

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=20160109202929.GA30687@jasmine \
    --to=leo@famulari.name \
    --cc=alezost@gmail.com \
    --cc=beffa@ieee.org \
    --cc=guix-devel@gnu.org \
    /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).