Re: A login annoyance

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

 




On 10/10/2014 10:01 PM, Ed Greshko wrote:
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.

hxtools-profile
I found the cause!
A package that I installed (hxtools-profile) that was needed by some other package was the source of the annoyance - it installed /usr/share/hxtools/hxtools_profile.bash
which is linked to by /etc/profile.d/z_hxtools_profile.sh
and is executed by /etc/profile, contained most of the annoyances.

Another script virtualenvwrapper.sh also in /etc/profile.d contained
the non-standard redirection &>FILENAME which bash declares to e non standard
and is interpreted as >FILENAME 2>&1

Package python-virtualenvwrapper-4.3.1-1.fc20.noarch is what installs /etc/profile.d/virtualenvwrapper.sh

I deleted the packages that ultimately needed these 2 shell scripts.
Good thing no other packages needed them :)


--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux