On 02-09-2014 20:47, Armin K. wrote:
> On 09/03/2014 01:05 AM, Fernando de Oliveira wrote:
>> Fixed at revision 14177.
>>
>> Thanks Armin and Bruce.
>>
>> Armin, I could not use your suggestion (my preferred one), because each
>> time an x-terminal emulator started, several error messages about not
>> finding patappend and pathremove appeared in the newly open terminal..
>>
>> I recall that they used to be unset, and is not anymore, thought it was
>> /etc/profile that unset it, but was not. If I could find how to avoid
>> this problem, I would replace the fix I put in the book, and don't like,
>> by yours.
>>
> 
> pathappend and pathremove are defined in /etc/profile itself. Are you
> sure that you were sourcing it (. /etc/profile) (it's possible, by
> mistake, that you were executing it by missing the . (dot))?
> 
> Also, it's highly unlikely that LXDM could harm any X terminal in any
> way, simply because any terminal emulator runs bash (well, default user
> shell I think) and bash itself takes care of sourcing the startup
> scripts and stuff like that.

Thanks for your reply, Armin.

Well, I was using

 source /etc/profile/

Now, just to be sure, I used

 . /etc/profile

no difference.

Error appears as terminal opens, but it seems that just running bash
again there would produce the same error:

bash: pathappend: line 1: erro de sintaxe: fim prematuro do arquivo
bash: erro ao importar a definição da função para `pathappend'
bash: pathremove: line 1: erro de sintaxe: fim prematuro do arquivo
bash: erro ao importar a definição da função para `pathremove'
bash: pathprepend: line 1: erro de sintaxe: fim prematuro do arquivo
bash: erro ao importar a definição da função para `pathprepend'
fernando [ ~ ]$ ./sshfsNovoGamer.sh
/bin/bash: pathremove: line 1: erro de sintaxe: fim prematuro do arquivo
/bin/bash: erro ao importar a definição da função para `pathremove'
/bin/bash: pathappend: line 1: erro de sintaxe: fim prematuro do arquivo
/bin/bash: erro ao importar a definição da função para `pathappend'
/bin/bash: pathprepend: line 1: erro de sintaxe: fim prematuro do arquivo
/bin/bash: erro ao importar a definição da função para `pathprepend'

because the script I ran has #!/bin/bash.

Translations:

erro de sintaxe: fim prematuro do arquivo === syntax error: unexpected
(premature) end of file.

erro ao importar a definição da função para `path... === error importing
function definition for `path...

-- 
[]s,
Fernando
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to