A login annoyance

Joachim Backes joachim.backes at rhrk.uni-kl.de
Sat Oct 11 03:57:54 UTC 2014


On 10/11/2014 05:44 AM, jd1008 wrote:
> 
> On 10/10/2014 09:31 PM, Joachim Backes wrote:
>> On 10/11/2014 04:24 AM, jd1008 wrote:
>>> My login shell is /bin/ksh.
>>>
>>> My ~/.profile makes no calls to /etc/profile, directly or indirectly
>>> that I can see.
>>>
>>> Yet every time I login (console or gnome-terminal (which is set to run
>>> as a login shell)), I get this annoyance:
>>>
>>> /etc/profile[68]: .: line 921: warning: line 932: `&>file' is
>>> nonstandard -- interpreted as `>file 2>&1' for profile input only
>>> /etc/profile[68]: .[1716]: local: not found [No such file or directory]
>>> /etc/profile[68]: .[1690]: local: not found [No such file or directory]
>>> /etc/profile[68]: .[1691]: local: not found [No such file or directory]
>>> /etc/profile[68]: .[1692]: local: not found [No such file or directory]
>>>
>>> My .profile file sets a lot of env variables for things that I use,
>>> and this was not an annoyance until fc20.
>>>
>>> Guess I have to constantly remind myself: It's all beta stuff :)
>>>
>>>
>> See "man ksh", FILES section:
>>
>> ....
>>
>> FILES
>>         /etc/profile
>>                The system wide initialization file, executed for login
>> shells.
>>
>>         $HOME/.profile
>>                The personal initialization  file,  executed  for  login
>> shells
>>                after /etc/profile.
>> ...
>>
> You did not get my drift :)
> There is obviously a bug in the system script /etc/profile,

maybe :-(

> since my .profile is not invoking it.

But /etc/profile is called at *each* ksh login.

NB: I'm using bash, and I never had this problem with /etc/profile.

Why don't you open a BZ?

Joachim Backes

-- 

Fedora release 21 (Twenty One)
Kernel-3.17.0-301.fc21.x86_64


Joachim Backes <joachim.backes at rhrk.uni-kl.de>
https://www-user.rhrk.uni-kl.de/~backes


More information about the users mailing list