English 中文(简体)
Cygwin(或实际的UNIX壳)是否指挥从另一个名称空间进口到现在的名称空间,如在Adhur?
原标题:Does Cygwin (or an actual UNIX shell) have some command to import names from another namespace to the current namespace, as in Python?
  • 时间:2011-09-01 08:22:08
  •  标签:
  • shell
  • cygwin

在沙尔,我们可以使用“进口”将另一个名称空间的名称输入目前的名称空间。

同样,在UNIX的描述中是否存在像“名称空间”的概念? 如果是的话,那么Cygwin(或实际的UNIX壳)是否掌握从另一个名称空间进口到现在的名称空间,就像在Adre? 感谢。

向社区成员提供行政奖章: 我确实认为,这个问题是一个方案拟定问题,而不是一个“超级用户”问题。 请详细说明你为何不同意。 谢谢大家。

最佳回答

完全没有办法去做你要求的东西。

www.un.org/Depts/DGACM/index_chinese.htm 能够非常有用。

粪便档案只是环境变化清单。

FrontOfficeSystem=MyFrontOffice
BackOfficeSystem=myBackOffice

当你把指挥列入你的手稿时(任何名称都将有效),那么,她就认为,这部法律直接载于你的主要手稿中。 如同在很多路面上一样。 But namespaces, ... nope. 见下文。

更有帮助:见indirect reference,载于先进的Bash scripting中,这或许比使用eval ...(per below)好,但我没有机会与它合作。

finally, you may also benefit from eval and varname indirection, i.e.

 src=FrontOffice
 eval $${src}System="${src} has data"

 src=BackOffice
 eval $${src}System="${src} has data"

并不是一个伟大的例子,但我没有听说过我确实去过这个想法的文字。 这有助于将一些本来必须重复10次的法典统统化(分卷),用于每个数据弧(把编码重复编成整形,把弧名称作为(每个)的元件清单),然后,电阀将扩大作为前办公室系统、后台办公室系统的费用。 如果你用你的圆环名单上的贵方位清除,那么所有东西方都会消失。

use set -vx in your terminal window and copy/paste above code to see how it works. It might help.

我希望这一帮助。

P.S. 您似乎是一个新用户,如果你得到一个答案,帮助你记住它已被接受,并(或)将其作为有用的答案。

问题回答

暂无回答




相关问题
cygwin file path tab completion not working

How can I set up Cygwin to have tab completion? Actually, I do have it automatically, but it does not seem to complete paths. How do I set it up to complete paths?

cygwin version of idle has erroneous I/O handling

I am using idle (python 2.5) via cygwin on a windows vista machine and when I try to open an already existing .py file I see the full file path /home/aaron/C:/cygwin/home/aaron/script.py on the ...

Trying to get a terminal to work in Emacs

I ve been having a lot of problems with emacs and trying to get the terminal to work with: M-x term I installed cygwin and I fixed up my .emacs to include the paths: (setenv "PATH" (concat "...

Piping Cygwin into a Python program

As a i m new to the whole Piping thing and Python I had recently encountered a problem trying to pipe Cygwin s stdin & stdout into a python program usin Python s subprocess moudle. for example I ...

Unable to chdir() on Git/Cygwin

I installed Git via Cygwin on Windows Server. It works out very well. However there s a small issue that when I clone a repo use the command as following: $git clone git@myserver:project.git I ...

Linux Development C/C++/bash/python on windows-7

Before resorting to stackoverflow, i have spend a lot of times looking for the solutions. I have been a linux-user/developer for few years, now shifting to windows-7. I am looking for seting-up a ...

Cygwin/Git/Gitosis unable to push new repository

I ve recently set up cygwin, git, and gitosis on my Windows Server 2003 box and am having troubles. I ve followed just about every tutorial I can find to the letter, and have confirmed that my git ...

热门标签