第114页 | The Art of UNIX Programming | 阅读 ‧ 电子书库

同步阅读进度,多语言翻译,过滤屏幕蓝光,评论分享,更多完整功能,更好读书体验,试试 阅读 ‧ 电子书库

Chapter�燙onfiguration

Starting on the Right Foot

Table of Contents

What Should Be Configurable?

Where Configurations Live

Run-Control Files

Case Study: The .netrc FilePortability to Other Operating Systems

Environment Variables

System Environment VariablesUser Environment VariablesWhen to Use Environment VariablesPortability to Other Operating Systems

Command-Line Options

The -a to -z of Command-Line OptionsPortability to Other Operating Systems

How to Choose among the Methods

Case Study: fetchmailCase Study: The XFree86 Server

On Breaking These Rules

Under Unix, programs can communicate with their environment in a rich variety of ways. It's convenient to divide these into (a) startup-environment queries and (b) interactive channels. In this chapter, we'll focus primarily on startup-environment queries. The next chapter will discuss interactive channels.

 

 

 

Prev  Up Next

Ad-hoc Code Generation  Home 燱hat Should Be Configurable?

请支持我们,让我们可以支付服务器费用。
使用微信支付打赏


上一页 · 目录下一页


下载 · 书页 · 阅读 ‧ 电子书库