[ccache] ccache does not recognize environment variables under Fish shell

Martín Cigorraga martincigorraga at gmail.com
Tue Aug 19 04:43:04 MDT 2014


On Tue, Aug 19, 2014 at 6:22 AM, Andrew Stubbs <ams at codesourcery.com> wrote:

> On 19/08/14 01:35, Martín Cigorraga wrote:
>
>> I already set CCACHE_DIR to use my tmpfs /tmp/ccache directory:
>> ~ > echo $CCACHE_DIR
>> /tmp/ccache
>>
>
> You need to export the variable before it can be seen by programs other
> than your shell.
>
> I'm not familiar with fish shell, but there's a tutorial here:
>  http://fishshell.com/docs/current/tutorial.html
>
> It looks like you have to say this:
>
>   > set -x CCACHE_DIR /tmp/ccache
>
> You can check if the export was successful with the "env" command.
>
> Hope that helps
>
> Andrew
>

Oh my... you're absolutely right!!!
Thank you for your quick help and sorry for the noise :P
Cheers,
-Martin


More information about the ccache mailing list