On 10/11/14 11:57, Joachim Backes wrote:
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?
All one has to do to verify that /etc/profile is being sourced is to add
touch /tmp/x
to the top of the file.
--
If you can't laugh at yourself, others will gladly oblige.