lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Testing requested: new manuscript viewer tool for Frescobaldi


From: Federico Bruni
Subject: Re: Testing requested: new manuscript viewer tool for Frescobaldi
Date: Wed, 18 Nov 2015 17:48:34 +0100

Il giorno mer 18 nov 2015 alle 17:38, Ralf Mattes <address@hidden> ha scritto:

Am Mittwoch, 18. November 2015 16:56 CET, Federico Bruni <address@hidden> schrieb:

Il giorno mer 18 nov 2015 alle 16:33, Urs Liska <address@hidden> ha
 scritto:
 > Does sh read ~/.bashrc?

 Yes, it does:

 $ sh -c "echo $LILYPOND_GIT"
 /home/fede/src/lilypond-git

No, it doesn't (necesarily). In your test you start the shell (most likely /bin/sh, which most likeliy is a link to /bin/bash or /bin/dash) from within another shell runnning in a terminal emulator and _that_ shell most likely
read ~/.bashrc and exported those environment variables.

You are right, not necessarily: in fact it reads the environment variables, but it does not read the frescobaldi alias.

/bin/sh is a link to /bin/bash



 >
 > What about
 >
 > bash -c frescobaldi
 > ?

 same error

When run from a terminal (emulator)?  Hard to belive.
If run from some desktop file (or menu or whatever) then yes, that
would be expected. If you want bash to consult startup files you must
run it as a 'login' shell. So, either 'bash --login' or 'bash -l'

Well, this is what's happening here on Fedora 23 using the gnome terminal:

[~]$ bash -c frescobaldi
bash: frescobaldi: comando non trovato
[~]$ bash -c 'frescobaldi'
bash: frescobaldi: comando non trovato
[~]$ bash -l -c 'frescobaldi'
bash: frescobaldi: command not found






reply via email to

[Prev in Thread] Current Thread [Next in Thread]