On 03-09-2014 07:43, Armin K. wrote:
> On 09/03/2014 12:01 PM, Fernando de Oliveira wrote:
>> 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...
>>
> 
> Hm. Still makes zero sense to me, but iirc, /etc/profile.d/i18n.sh only
> exports the language variables, so would that be fine?

Thanks!! This really works!!!

[ -f /etc/profile.d/i18n.sh ] && . /etc/profile.d/i18n.sh

Actually, it should have come to my mind, after the problem with
/etc/profile and even before, because this is the first executable line
in lxdm (doh!):

[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n

For the time being, will just correct in the configuration section of
the page, but later, will try to build it with the correction in place,
which is more suitable for BLFS.

Thanks again. I am just going to commit it now, with some other
modifications I was just finishing when received your message.

-- 
[]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