On Thursday, 2014-02-20, 08:57:34, Richard Hartmann wrote:
> On Wed, Feb 19, 2014 at 6:41 PM, Kevin Krammer <[email protected]> wrote:
> > Like the other variables there would be a specified default, so configure
> > (or whatever) could peform the check and fall back to the default or a
> > shell substitution expression could be used, etc.
> 
> Those defaults are internal to programs; all a program would see in this
> case is
> 
>   ./foo --prefix=''
> 
> as shell expansion would happen before that. I know what you meant,
> but the fact is that you can never solely rely on XDG variables in an
> interactive shell.

Sorry, probably using wrong terminology :)

I meant something like
./foo --prefix=${XDG_INSTALL_HOME:-$HOME/.local}

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
xdg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xdg

Reply via email to