[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] gnu: aspell: Wrap binary to find dictionaries.
From: |
Leo Famulari |
Subject: |
Re: [PATCH] gnu: aspell: Wrap binary to find dictionaries. |
Date: |
Sat, 9 Jan 2016 15:29:29 -0500 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
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 <address@hidden>
> >> 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
>