On Wed 18 Nov 2015 at 16:56:47 (+0100), Federico Bruni wrote: > Il giorno mer 18 nov 2015 alle 16:33, Urs Liska <u...@openlilylib.org> > ha scritto: > >Does sh read ~/.bashrc? > > Yes, it does: > > $ sh -c "echo $LILYPOND_GIT" > /home/fede/src/lilypond-git
I'm not sure what this is meant to demonstrate. If your normal shell's startup file has set LILYPOND_GIT, then sh -c will only inherit it. You really need to know what sh is invoking. Here, ls -l /bin/sh lrwxrwxrwx 1 root root 4 Nov 8 2014 /bin/sh -> dash Running bash and dash and sh interactively (following each invocation with ^D to exit), one gets: west!david 10:41:39 ~ $ bash (This is /home/david/.bashrc 2015 October 15) (This is /home/david/.bash-1-west 2015 July 13 on jessie) (This is /home/david/.bash-9-west 2015 August 04) west!david 10:41:42 ~ $ exit west!david 10:41:43 ~ $ dash \[\e[1;33;41m\]\[\e[0;34m\]\H!\u \t \w $ \[\e[m\] west!david 10:41:47 ~ $ sh \[\e[1;33;41m\]\[\e[0;34m\]\H!\u \t \w $ \[\e[m\] west!david 10:41:51 ~ $ Cheers, David. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user