V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  phx13ye  ›  全部回复第 19 页 / 共 28 页
回复总数  543
1 ... 11  12  13  14  15  16  17  18  19  20 ... 28  
2015-08-29 01:41:17 +08:00
回复了 ultraqs 创建的主题 Linux Linux 中的环境变量$ PATH 是在什么时候设置的?
INVOCATION
A login shell is one whose first character of argument zero is a -, or one started with the --login option.

An interactive shell is one started without non-option arguments and without the -c option whose standard input and error are both connected
to terminals (as determined by isatty (3 )), or one started with the -i option. PS1 is set and $- includes i if bash is interactive, allowing a
shell script or a startup file to test this state.

The following paragraphs describe how bash executes its startup files. If any of the files exist but cannot be read, bash reports an error.
Tildes are expanded in filenames as described below under Tilde Expansion in the EXPANSION section.

When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes com ‐
mands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile,
in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the
shell is started to inhibit this behavior.

When a login shell exits, bash reads and executes commands from the file ~/.bash_logout, if it exists.

When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc, if that file exists. This
may be inhibited by using the --norc option. The --rcfile file option will force bash to read and execute commands from file instead of
~/.bashrc.

When bash is started non-interactively, to run a shell script, for example, it looks for the variable BASH_ENV in the environment, expands its
value if it appears there, and uses the expanded value as the name of a file to read and execute. Bash behaves as if the following command
were executed:
if [ -n "$BASH_ENV" ]; then . "$BASH_ENV"; fi
but the value of the PATH variable is not used to search for the filename.

If bash is invoked with the name sh, it tries to mimic the startup behavior of historical versions of sh as closely as possible, while con ‐
forming to the POSIX standard as well. When invoked as an interactive login shell, or a non-interactive shell with the --login option, it
first attempts to read and execute commands from /etc/profile and ~/.profile, in that order. The --noprofile option may be used to inhibit
this behavior. When invoked as an interactive shell with the name sh, bash looks for the variable ENV, expands its value if it is defined,
and uses the expanded value as the name of a file to read and execute. Since a shell invoked as sh does not attempt to read and execute com ‐
mands from any other startup files, the --rcfile option has no effect. A non-interactive shell invoked with the name sh does not attempt to
read any other startup files. When invoked as sh, bash enters posix mode after the startup files are read.
2015-08-27 00:58:22 +08:00
回复了 7sDream 创建的主题 Django 来来来,大家一起来翻译 Django 文档咋样?
赞, django 的文档最好了
2015-08-24 20:46:49 +08:00
回复了 Remark 创建的主题 酷工作 [深圳] 招募卡丁车车手
2015-08-24 20:30:56 +08:00
回复了 tiange 创建的主题 Java 这里有用 Spring Boot 的 Java 程序员吗?
spring 官网的 guide , 几乎都用了, 作为一个 spring 脑残粉, 个人也是相当喜欢
必然是所谓的 SSH 咯, 不过懂个 Spring 就行
还以为是 py 项目,
熟悉的味道, spring 玩的挺 6 啊, 看你没有用 hibernate 啊,为什么要依赖它呢
2015-08-22 16:57:33 +08:00
回复了 darnurash 创建的主题 Android Linux 版 Android Studio 能否覆盖升级?
arch 党都是从 archlinuxcn 镜像自动升级的
2015-08-20 22:41:44 +08:00
回复了 warlock 创建的主题 程序员 七夕,你们公司发福利了吗?
@asan2006 你的键盘是不是 hp 品牌机的, 和我在公司拿的好像啊,哈哈
2015-08-20 22:39:31 +08:00
回复了 wuruxu 创建的主题 Go 编程语言 为什么 Go 1.5 要用 Go 重新写 compiler ?
bootstrap
2015-08-19 23:14:24 +08:00
回复了 blackboom 创建的主题 Java JAVA 获取时间不正确
2015-08-19 22:30:28 +08:00
回复了 blackboom 创建的主题 Java JAVA 获取时间不正确
硬件时间同步成 UTC , 自己的环境时区随便怎么搞
2015-08-19 22:16:15 +08:00
回复了 aprikyblue 创建的主题 程序员 遇到朋友提交的这种代码该怎么办
这么多 ifelse
这不应该用字典,哈希,映射,对象吗?
装逼一点就应该上那啥设计模式了, state ?
不能吧 , spring 有编译错误都跑不起来,这个得你自己 hack 一下了
2015-08-18 23:29:20 +08:00
回复了 letitbesqzr 创建的主题 程序员 说说你们在项目中遇到过的最糟糕的代码
@hcymk2 又快又安全的是?
2015-08-18 15:15:01 +08:00
回复了 andyhenry 创建的主题 Linux 说说我心中的 linux(及苹果)
2015-08-18 00:04:18 +08:00
回复了 Mirana 创建的主题 Linux 在 Win8 上装 arch,从硬盘安装的方法是什么
tf 卡加读卡器都没吗, grub4dos 不知道 uefi 下行不行

建议还是 u 盘靠谱全新安装,
关 secure boot , uefi 启动 boot 进 iso ,然后按 beginner guide 来一边
2015-08-17 23:32:27 +08:00
回复了 bruceshaoheng 创建的主题 酷工作 坐标杭州,寻高级 JAVA 开发工程师
个人资料有 github ,求加好友
2015-08-17 23:31:50 +08:00
回复了 andyhenry 创建的主题 Linux 说说我心中的 linux(及苹果)
@incompatible 可以先看看别人的评测
2015-08-17 23:13:25 +08:00
回复了 andyhenry 创建的主题 Linux 说说我心中的 linux(及苹果)
@incompatible windows 10 我不知道, 8 。 1 以前对高分屏支持真不行
1 ... 11  12  13  14  15  16  17  18  19  20 ... 28  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2263 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 30ms · UTC 01:42 · PVG 09:42 · LAX 17:42 · JFK 20:42
Developed with CodeLauncher
♥ Do have faith in what you're doing.