特殊:Badtitle/NS100:EnvironmentVariables/PageDiscussion:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Wikibot留言 | 贡献
新页面: {{From|https://help.ubuntu.com/community/EnvironmentVariables/PageDiscussion}} {{Languages|UbuntuHelp:EnvironmentVariables/PageDiscussion}} This is the discussion page for: [[../]] Please...
 
Wikibot留言 | 贡献
无编辑摘要
 
第1行: 第1行:
{{From|https://help.ubuntu.com/community/EnvironmentVariables/PageDiscussion}}
{{From|https://help.ubuntu.com/community/EnvironmentVariables/PageDiscussion}}
{{Languages|UbuntuHelp:EnvironmentVariables/PageDiscussion}}
{{Languages|UbuntuHelp:EnvironmentVariables/PageDiscussion}}
This is the discussion page for: [[../]]
This is the discussion page for: [[UbuntuHelp:EnvironmentVariables/|EnvironmentVariables/]]
Please sign your comments by pasting `-- [[duncan-lithgow]] <<DateTime(2008-07-24T22:15:52+0200)>>` after them.
Please sign your comments by pasting `-- [[UbuntuHelp:duncan-lithgow|duncan-lithgow]] <<DateTime(2008-07-24T22:15:52+0200)>>` after them.
-- [[duncan-lithgow]] <<DateTime(2008-07-24T22:15:52+0200)>> Created this template
-- [[UbuntuHelp:duncan-lithgow|duncan-lithgow]] <<DateTime(2008-07-24T22:15:52+0200)>> Created this template
== Pages linking to EnvironmentalVariables ==
== Pages linking to EnvironmentalVariables ==
<<FullSearchCached(EnvironmentalVariables)>>
<<FullSearchCached(EnvironmentalVariables)>>
----
----
[[category:CategoryPageDiscussion]]
[[category:CategoryPageDiscussion]]
===.bashrc===
under "System-wide environment variables" it says:
" /etc/bash.bashrc - This is is the system-wide version of the ~/.bashrc file. Ubuntu is configured by default to execute this file whenever a user enters a shell or the desktop environment. "
However my understanding is that .bashrc will only be executed for interactive, non-login shells - i.e. terminal emulators opened under a graphical desktop session. This would make it an unsuitable place for setting locale variables intended to affect graphical programmes.
-- [[UbuntuHelp:launchpad-rafflesnagoya|launchpad-rafflesnagoya]] <<DateTime(2009-03-31T13:24:21+0900)>>
You might want to point out that environment variables added to .bashrc will only be seen by bash, whereas environment variables added to .profile will be seen by all programs.


[[category:UbuntuHelp]]
[[category:UbuntuHelp]]

2009年5月14日 (四) 15:09的最新版本

{{#ifexist: :EnvironmentVariables/PageDiscussion/zh | | {{#ifexist: EnvironmentVariables/PageDiscussion/zh | | {{#ifeq: {{#titleparts:EnvironmentVariables/PageDiscussion|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:EnvironmentVariables/PageDiscussion|1|-1|}} | zh | | }}

This is the discussion page for: EnvironmentVariables/ Please sign your comments by pasting `-- duncan-lithgow <<DateTime(2008-07-24T22:15:52+0200)>>` after them. -- duncan-lithgow <<DateTime(2008-07-24T22:15:52+0200)>> Created this template

Pages linking to EnvironmentalVariables

<<FullSearchCached(EnvironmentalVariables)>>


.bashrc

under "System-wide environment variables" it says: " /etc/bash.bashrc - This is is the system-wide version of the ~/.bashrc file. Ubuntu is configured by default to execute this file whenever a user enters a shell or the desktop environment. " However my understanding is that .bashrc will only be executed for interactive, non-login shells - i.e. terminal emulators opened under a graphical desktop session. This would make it an unsuitable place for setting locale variables intended to affect graphical programmes. -- launchpad-rafflesnagoya <<DateTime(2009-03-31T13:24:21+0900)>> You might want to point out that environment variables added to .bashrc will only be seen by bash, whereas environment variables added to .profile will be seen by all programs.