亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? article.ms

?? android-w.song.android.widget
?? MS
?? 第 1 頁 / 共 3 頁
字號:
.de SE	\" start example.sp .5.RS.ft CR.nf...de EE	\" end example.fi.sp .5.RE.ft R...TLBash \- The GNU shell*.AUChet RameyCase Western Reserve Universitychet@po.cwru.edu.FS*An earlier version of this article appeared in The Linux Journal..FE.NH 1Introduction.PP.B Bashis the shell, or command language interpreter,that will appear in the GNU operating system.The name is an acronym forthe \*QBourne-Again SHell\*U, a pun on Steve Bourne, the authorof the direct ancestor of the current.UXshell \fI/bin/sh\fP,which appeared in the Seventh Edition Bell Labs Research versionof \s-1UNIX\s+1..PPBash is an \fBsh\fP\-compatible shell that incorporates usefulfeatures from the Korn shell (\fBksh\fP) and the C shell (\fBcsh\fP),described later in this article.  It is ultimately intended to be aconformant implementation of the IEEE POSIX Shell and Utilitiesspecification (IEEE Working Group 1003.2).  It offers functionalimprovements over sh for both interactive and programming use..PPWhile the GNU operating system will most likely include a versionof the Berkeley shell csh, Bash will be the default shell.Like other GNU software, Bash is quite portable.  It currently runson nearly every version of.UXand a few other operating systems \- an independently-supportedport exists for OS/2, and there are rumors of ports to DOS andWindows NT.  Ports to \s-1UNIX\s+1-like systems such as QNX and Minixare part of the distribution..PPThe original author of Bashwas Brian Fox, an employee of the Free Software Foundation.  Thecurrent developer and maintainer is Chet Ramey, a volunteer whoworks at Case Western Reserve University..NH 1What's POSIX, anyway?.PP.I POSIXis a name originally coined by Richard Stallman for a family of opensystem standards based on \s-1UNIX\s+1.  There are a number of aspects of \s-1UNIX\s+1under consideration for standardization, from the basic system servicesat the system call and C library level to applications and tools to systemadministration and management.  Each area of standardization isassigned to a working group in the 1003 series..PPThe POSIX Shell and Utilities standard has been developed by IEEE WorkingGroup 1003.2 (POSIX.2).\(dd.FS\(ddIEEE, \fIIEEE Standard for Information Technology -- PortableOperating System Interface (POSIX) Part 2: Shell and Utilities\fP,1992..FEIt concentrates on the command interpreterinterface and utility programscommonly executed from the command line or by other programs.An initial version of the standard has beenapproved and published by the IEEE, and work is currently underway toupdate it.There are four primary areas of work in the 1003.2 standard:.IP \(buAspects of the shell's syntax and command language.A number of special builtins such as.B cdand.B execare being specified as part of the shell, since theirfunctionality usually cannot be implemented by a separate executable;.IP \(buA set of utilities to be called by shell scripts and applications.Examples are programs like.I sed,.I tr,and.I awk.Utilities commonly implemented as shell builtinsare described in this section, such as.B testand.B kill .An expansion of this section's scope, termed the User PortabilityExtension, or UPE, has standardized interactive programs such as.I viand.I mailx;.IP \(buA group of functional interfaces to services provided by theshell, such as the traditional \f(CRsystem()\fPC library function.  There are functions to perform shell wordexpansions, perform filename expansion (\fIglobbing\fP), obtain valuesof POSIX.2 system configuration variables, retrieve values ofenvironment variables (\f(CRgetenv()\fP\^), and other services;.IP \(buA suite of \*Qdevelopment\*U utilities such as.I c89(the POSIX.2 version of \fIcc\fP),and.I yacc..PPBash is concerned with the aspects of the shell's behaviordefined by POSIX.2.  The shell command language has ofcourse been standardized, including the basic flow controland program execution constructs, I/O redirection andpipelining, argument handling, variable expansion, and quoting.The.I specialbuiltins, which must be implemented as part of the shell toprovide the desired functionality, are specified as beingpart of the shell; examples of these are.B evaland.B export .Other utilities appear in the sections of POSIX.2 notdevoted to the shell which are commonly (and in somecases must be) implemented as builtin commands, such as.B readand.B test .POSIX.2 also specifies aspects of the shell'sinteractive behavior as part ofthe UPE, including job control and command line editing.Interestingly enough, only \fIvi\fP-style line editing commandshave been standardized; \fIemacs\fP editing commands were leftout due to objections..PPWhile POSIX.2 includes much of what the shell has traditionallyprovided, some important things have been omitted as being\*Qbeyond its scope.\*U  There is, for instance, no mention ofa difference between a.I loginshell and any other interactive shell (since POSIX.2 does notspecify a login program).  No fixed startup files are defined,either \- the standard does not mention.I .profile ..NH 1Basic Bash features.PPSince the Bourne shellprovides Bash with most of its philosophical underpinnings,Bash inherits most of its features and functionality from sh.Bash implements all of the traditional sh flowcontrol constructs (\fIfor\fP, \fIif\fP, \fIwhile\fP, etc.).All of the Bourne shell builtins, including those not specified inthe POSIX.2 standard, appear in Bash.  Shell \fIfunctions\fP,introduced in the SVR2 version of the Bourne shell,are similar to shell scripts, but are defined using a specialsyntax and are executed in the same process as the calling shell.Bash has shell functionswhich behave in a fashion upward-compatible with sh functions.There are certain shellvariables that Bash interprets in the same way as sh, such as.B PS1 ,.B IFS ,and.B PATH .Bash implements essentially the same grammar, parameter andvariable expansion semantics, redirection, and quoting as theBourne shell.  Where differences appear between the POSIX.2standard and traditional sh behavior, Bash follows POSIX..PPThe Korn Shell (\fBksh\fP) is a descendent of the Bourne shell writtenat AT&T Bell Laboratories by David Korn\(dg.  It provides a number ofuseful features that POSIX and Bash have adopted.  Many of theinteractive facilities in POSIX.2 have their roots in the ksh:for example, the POSIX and ksh job control facilities are nearlyidentical. Bash includes features from the Korn Shell for bothinteractive use and shell programming.  For programming, Bash providesvariables such as.B RANDOMand.B REPLY ,the.B typesetbuiltin,the ability to remove substrings from variables based on patterns,and shell arithmetic..FS\(dgMorris Bolsky and David Korn, \fIThe KornShell Command andProgramming Language\fP, Prentice Hall, 1989..FE.B RANDOMexpands to a random number each time it is referenced; assigning avalue to.B RANDOMseeds the random number generator..B REPLYis the default variable used by the.B readbuiltin when no variable names are supplied as arguments.The.B typesetbuiltin is used to define variables and give them attributessuch as \fBreadonly\fP.Bash arithmetic allows the evaluation of an expression and thesubstitution of the result.  Shell variables may be used as operands,and the result of an expression may be assigned to a variable.Nearly all of the operators from the C language are available,with the same precedence rules:.SE$ echo $((3 + 5 * 32))163.EE.LPFor interactive use, Bash implements ksh-style aliases and builtinssuch as.B fc(discussed below) and.B jobs .Bash aliases allow a string to be substituted for a command name.They can be used to create a mnemonic for a \s-1UNIX\s+1 commandname (\f(CRalias del=rm\fP), to expand a single word to a complex command(\f(CRalias news='xterm -g 80x45 -title trn -e trn -e -S1 -N &'\fP), or toensure that a command is invoked with a basic set of options(\f(CRalias ls="/bin/ls -F"\fP)..PPThe C shell (\fBcsh\fP)\(dg, originally written by Bill Joy while atBerkeley, is widely used and quite popular for its interactivefacilities.  Bash includes a csh-compatible history expansionmechanism (\*Q! history\*U), brace expansion, access to a stackof directories via the.B pushd ,.B popd ,and.B dirsbuiltins, and tilde expansion, to generate users' home directories.Tilde expansion has also been adopted by both the Korn Shell andPOSIX.2..FS\(dgBill Joy, An Introduction to the C Shell, \fIUNIX User's SupplementaryDocuments\fP, University of California at Berkeley, 1986..FE.PPThere were certain areas in which POSIX.2 felt standardizationwas necessary, but no existing implementation provided the properbehavior.  The working group invented and standardized functionalityin these areas, which Bash implements.  The.B commandbuiltin was invented so that shell functions could be written toreplace builtins; it makes the capabilities of the builtinavailable to the function.  The reserved word \*Q!\*U was addedto negate the return value of a command or pipeline; it was nearlyimpossible to express \*Qif not x\*U cleanly using the sh language.There exist multiple incompatible implementations of the .B testbuiltin, which tests files for type and other attributes and performsarithmetic and string comparisons.POSIX considered none of these correct, so the standardbehavior was specified in terms of the number of arguments to thecommand.  POSIX.2 dictates exactly what will happen when four orfewer arguments are given to.B test ,and leaves the behavior undefined when more arguments are supplied.Bash uses the POSIX.2 algorithm, which was conceived by David Korn..NH 2Features not in the Bourne Shell.PPThere are a number of minor differences between Bash and theversion of sh present on most other versions of \s-1UNIX\s+1.  The majorityof these are due to the POSIX standard, but some are the result ofBash adopting features from other shells.  For instance, Bashincludes the new \*Q!\*U reserved word, the.B commandbuiltin, the ability of the.B readbuiltin to correctly return a line ending with a backslash, symbolicarguments to the.B umaskbuiltin, variable substring removal, a way to get the length of a variable,and the new algorithm for the.B testbuiltin from the POSIX.2 standard, none of which appear in sh..PPBash also implements the \*Q$(...)\*U command substitution syntax,which supersedes the sh `...` construct.The \*Q$(...)\*U construct expands to the output of the commandcontained within theparentheses, with trailing newlines removed.  The sh syntax isaccepted for backwards compatibility, but the \*Q$(...)\*U formis preferred because its quoting rules are much simpler and itis easier to nest..PPThe Bourne shell does not provide such features as brace expansion,the abilityto define a variable and a function with the same name, local variablesin shell functions, the ability to enable and disable individualbuiltins or write a function to replace a builtin, or a means toexport a shell function to a child process..PPBash has closeda long-standing shell security hole by not using the.B $IFSvariable to split each word read by the shell, but splitting onlythe results of expansion (ksh and the 4.4 BSD sh have fixed thisas well).  Useful behavior such as a means to abortexecution of a script read with the \*Q.\*U command using the\fBreturn\fP builtin or automaticallyexporting variables in the shell's environment to children is alsonot present in the Bourne shell.  Bash provides a much more powerfulenvironment for both interactive use and programming..NH 1Bash-specific Features.PPThis section details a few of the features which make Bash unique.Most of them provide improved interactive use, but a few programmingimprovements are present as well.  Full descriptions of thesefeatures can be found in the Bash documentation..NH 2Startup Files.PPBash executes startup files differently than other shells.  The Bashbehavior is a compromise between the csh principle of startup fileswith fixed names executed for each shell and the sh\*Qminimalist\*U behavior.  An interactive instance of Bash startedas a login shell reads and executes.I ~/.bash_profile(the file .bash_profile in the user's home directory), if it exists.An interactive non-login shell reads and executes.I ~/.bashrc .A non-interactive shell (one begun to execute a shell script, forexample) reads no fixed startup file, but uses the value of the variable.B $ENV ,if set, as the name of a startup file.  The ksh practice of reading.B $ENVfor every shell, with the accompanying difficulty of defining theproper variables and functions for interactive and non-interactiveshells or having the file read only for interactive shells, wasconsidered too complex.  Ease of use won out here.  Interestingly,the next release of ksh will change to reading.B $ENVonly for interactive shells..NH 2New Builtin Commands.PPThere are a few builtins which are new or have been extended in Bash.The.B enablebuiltin allows builtin commands to be turned on and off arbitrarily.To use the version of.I echofound in a user's search path rather than the Bash builtin,\f(CRenable -n echo\fP suffices.  The.B helpbuiltin providesquick synopses of the shell facilities without requiringaccess to a manual page..B Builtinis similar to.B commandin that it bypasses shell functions and directly executes builtincommands.  Access to a csh-style stack of directories is providedvia the

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本在线不卡视频一二三区| 91丨porny丨蝌蚪视频| 日产精品久久久久久久性色| 亚洲男女一区二区三区| 中文字幕一区二区视频| 国产精品久久毛片a| 国产精品欧美一级免费| 国产二区国产一区在线观看| 国内精品伊人久久久久av影院| 免费看精品久久片| 国产在线精品一区二区三区不卡| 激情综合色播五月| 国产精品一级片| 成人看片黄a免费看在线| av在线不卡观看免费观看| 91小视频免费观看| 91精彩视频在线| 欧美日韩激情在线| 精品久久久久久久久久久久久久久| 日韩精品一区二区在线观看| 久久一夜天堂av一区二区三区| 国产日产精品一区| 亚洲欧美国产77777| 亚洲成va人在线观看| 久久精品国产精品亚洲综合| 国产91精品露脸国语对白| av一区二区三区在线| 在线观看国产一区二区| 欧美一区二区不卡视频| 日本一区二区免费在线观看视频 | 亚洲女同一区二区| 天堂影院一区二区| 国产电影一区二区三区| 色婷婷精品大在线视频| 欧美一级一区二区| 国产精品视频看| 亚洲一区二三区| 国产麻豆9l精品三级站| 91香蕉视频黄| 欧美r级电影在线观看| 自拍偷拍亚洲激情| 免费成人在线视频观看| av在线不卡网| 日韩欧美卡一卡二| 亚洲精品国久久99热| 久久av中文字幕片| 99riav久久精品riav| 欧美一区二区三区免费在线看 | 久久久久久免费| 亚洲制服丝袜av| 精品一区二区三区免费毛片爱| 99精品在线观看视频| 欧美成人一区二区三区| 中文字幕亚洲一区二区av在线| 日韩精品乱码av一区二区| 成人理论电影网| 欧美mv日韩mv| 欧日韩精品视频| 精品动漫一区二区三区在线观看| 一区二区三区在线观看网站| 国产一级精品在线| 欧美日韩三级一区二区| 国产精品久久看| 国内精品久久久久影院色| 欧美日韩国产乱码电影| 亚洲欧美日韩精品久久久久| 国产一区二区三区观看| 在线播放/欧美激情| 亚洲欧美日韩一区二区| 国产一区二区不卡| 欧美高清一级片在线| 亚洲视频一二三| 国产成人在线视频网站| 日韩三级在线观看| 亚洲午夜精品在线| www.欧美.com| 国产欧美精品国产国产专区| 蜜桃av一区二区三区| 欧美在线一二三| 亚洲精选视频在线| 波多野结衣91| 国产欧美精品一区| 国产成人在线色| 久久精品男人天堂av| 奇米影视7777精品一区二区| 欧美日韩在线三级| 一区二区日韩电影| 91成人国产精品| 亚洲美女免费在线| 99精品国产热久久91蜜凸| 国产免费成人在线视频| 国产suv一区二区三区88区| 久久伊99综合婷婷久久伊| 激情六月婷婷综合| 久久综合精品国产一区二区三区| 麻豆精品国产传媒mv男同 | 天天影视色香欲综合网老头| 欧美影院精品一区| 亚洲综合色成人| 日本精品一级二级| 亚洲一区二区精品久久av| 欧美亚一区二区| 午夜久久久久久电影| 欧美日韩在线播放一区| 亚洲777理论| 欧美一区二区二区| 韩国欧美国产1区| 久久伊人中文字幕| 成人一区二区三区在线观看| 中文字幕亚洲欧美在线不卡| 日本精品视频一区二区三区| 亚洲国产美女搞黄色| 欧美伦理影视网| 久久av资源网| 国产精品水嫩水嫩| 91黄色免费看| 丝袜国产日韩另类美女| 热久久久久久久| 日韩欧美国产高清| 国产一区免费电影| 欧美高清在线一区| 色中色一区二区| 日韩成人免费在线| 精品久久99ma| 不卡的av在线| 午夜欧美视频在线观看| 日韩精品专区在线影院观看| 成人综合婷婷国产精品久久蜜臀| 综合中文字幕亚洲| 91精品国产综合久久久久久久久久 | 日欧美一区二区| 精品国产一区二区三区久久久蜜月 | 欧美国产日产图区| 91女神在线视频| 日韩综合在线视频| 中文字幕精品在线不卡| 91久久精品一区二区三区| 日本亚洲欧美天堂免费| 国产欧美日韩在线看| 欧美影院午夜播放| 国产乱子轮精品视频| 亚洲人成精品久久久久久 | 亚洲色图在线播放| 91精品国产综合久久香蕉麻豆 | 日韩精品资源二区在线| 成人午夜激情在线| 亚洲丰满少妇videoshd| 久久婷婷一区二区三区| 一本到一区二区三区| 日韩 欧美一区二区三区| 国产精品色在线观看| 欧美日韩精品一区二区三区蜜桃| 国产露脸91国语对白| 一区二区三区四区中文字幕| 日韩午夜精品电影| 色伊人久久综合中文字幕| 免费久久精品视频| 亚洲精品亚洲人成人网| 精品99久久久久久| 色欧美乱欧美15图片| 国产精品亚洲综合一区在线观看| 亚洲激情一二三区| 国产女人18毛片水真多成人如厕| 在线电影国产精品| 粉嫩av一区二区三区在线播放| 午夜久久久久久| 亚洲欧美另类小说视频| 久久精品一区二区三区不卡牛牛| 欧美亚洲综合色| 成人黄色在线看| 久久国产乱子精品免费女| 亚洲制服丝袜在线| 国产精品国产馆在线真实露脸| 欧美一区二区国产| 亚洲美女电影在线| 国产午夜精品理论片a级大结局| 337p亚洲精品色噜噜| 91视频免费播放| 国产成人一级电影| 精品在线播放午夜| 性久久久久久久久| 亚洲夂夂婷婷色拍ww47| 自拍视频在线观看一区二区| 国产视频一区二区三区在线观看| 日韩一级大片在线| 欧美老肥妇做.爰bbww| 日本韩国视频一区二区| av高清不卡在线| 国产69精品久久久久毛片| 精品一区二区三区久久| 麻豆精品精品国产自在97香蕉| 亚洲成人综合网站| 亚洲另类春色国产| 亚洲女子a中天字幕| 中文字幕视频一区| 中文字幕日韩一区二区| 中文字幕一区二区三区蜜月 | 国产在线乱码一区二区三区| 麻豆传媒一区二区三区| 蜜臀国产一区二区三区在线播放 |