• Complain

Arnold Robbins - Learning the Korn Shell (2nd Edition)

Here you can read online Arnold Robbins - Learning the Korn Shell (2nd Edition) full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2002, publisher: OReilly Media, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Arnold Robbins Learning the Korn Shell (2nd Edition)

Learning the Korn Shell (2nd Edition): summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Learning the Korn Shell (2nd Edition)" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

The Korn shell is an interactive command and scripting language for accessing Unix and other computer systems. As a complete and high-level programming language in itself, its been a favorite since it was developed in the mid 1980s by David G. Korn at AT&T Bell Laboratories. Knowing how to use it is an essential skill for serious Unix users. Learning the Korn Shell shows you how to use the Korn shell as a user interface and as a programming environment.Writing applications is often easier and quicker with Korn than with other high-level languages. Because of this, the Korn shell is the most often used shell in commercial environments and among inexperienced users. There are two other widely used shells, the Bourne shell and the C shell. The Korn shell, or ksh, has the best features of both, plus many new features of its own. ksh can do much to enhance productivity and the quality of a users work, both in interacting with the system, and in programming. The new version, ksh93, has the functionality of other scripting languages such as awk, icon, Perl, rexx, and tcl.Learning the Korn Shell is the key to gaining control of the Korn shell and becoming adept at using it as an interactive command and scripting language. Prior programming experience is not required in order to understand the chapters on basic shell programming. Readers will learn how to write many applications more easily and quickly than with other high-level languages. In addition, readers will also learn about Unix utilities and the way the Unix operating system works in general. The authors maintain that you shouldnt have to be an internals expert to use and program the shell effectively.The second edition covers all the features of the current version of the Korn shell, including many new features not in earlier versions of ksh93, making it the most up-to-date reference available on the Korn shell. It compares the current version of the Korn shell to several other Bourne-compatible shells, including several Unix emulation environments for MS-DOS and Windows. In addition, it describes how to download and build ksh93 from source code.A solid offering for many years, this newly revised title inherits a long tradition of trust among computer professionals who want to learn or refine an essential skill.

Arnold Robbins: author's other books


Who wrote Learning the Korn Shell (2nd Edition)? Find out the surname, the name of the author of the book and a list of all author's works by series.

Learning the Korn Shell (2nd Edition) — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Learning the Korn Shell (2nd Edition)" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Appendix A Related Shells Contents The fragmentation of the Unix - photo 1
Appendix A. Related Shells
Contents:

The fragmentation of the Unix marketplace has had its advantages anddisadvantages. The advantages came mostly in the early days: lack of standardization and proliferation among technicallysavvy academics and professionalscontributed to a healthy "free market" for Unix software, in whichseveral programs of the same type (e.g., shells, text editors,system administration tools) would often compete for popularity.The best programs would usually become the most widespread,while inferior software tended to fade away.

But often there was no single "best" program in a given category,so several would prevail.This led to the current situation, where multiplicity of similarsoftware has led to confusion, lack of compatibility, and -- mostunfortunate of all -- Unix's inability to capture as big a share ofthe market as other operating platforms.In particular, Unix has been relegated to its current position as a verypopular operating system for servers, but it's a rarity on desktop machines.

The "shell" category has probably suffered in this way more thanany other type of software. As we said in,it is one of the strengths of Unix that the shell is replaceable, and thusa number of shells are currently available; the differencesbetween them are often not all that great. We believe that the Kornshell is one of the best of the most widely used shells, but other shellscertainly have their staunch adherents, so they aren't likely tofade into obscurity.In fact, it seems that shells, Bourne-compatible or not, continue to proliferate.

Therefore we felt it necessary to include information on shells similar to the Korn shell. This Appendixsummarizes the differences between the Korn shell and the following shells:

  • The System V Release 4 Bourne shell, as a kind of baseline

  • The 1988 version of the Korn shell

  • The IEEE POSIX 1003.2 Shell Standard, to which the Kornshell and other shells adhere

  • The Desk Top Korn shell (dtksh), a Korn shell withenhancements for X Window System programming, as part of the Common DesktopEnvironment (CDE)

  • The tksh shell, an interesting blendof ksh93 with Tcl/Tk

  • pdksh, a widely used public domain version of the Korn shell

  • The bash shell, another enhanced Bourne shellwith some C shell and Korn shell features

  • The Z shell, zsh, yet another enhanced Bourne shellwith some C shell and Korn shell features and many, many more of its own

  • Korn shell workalikes on desktop PC platforms

A.1. The Bourne Shell

This is an archaic feature thatthe Bourne shell includes for its own backward compatibilitywith earlier shells. No modern Unix version has any shell codethat uses ^ as a pipe.

[145]There are also a few differences in how the two shells react to certain extremely pathological input. Usually, the Korn shell processes correctlywhat causes the Bourne shell to "choke."

To describe the differences between the Bourne shelland the Korn shell, we'll go through each chapter of this bookand enumerate the features discussed in the chapter that the Bourneshell does not support.

The cd old new and cd - forms of the cd command.

Tilde ( ~ ) expansion.

The Bourne shell always follows the physical file layout, which affectswhat happens when you cd .. out of somewhere thatwas a symbolic link.

The built-in commands don't have online help.

Some older versions of the Bourne shell don't supportthe jobs command and job control,or they may require being invoked as jsh in orderto enable job control features.

All (i.e., the Bourne shell doesn't support any ofthe history and editing features discussed in ).Aliases are not supported.

set -o options don't work. The Bourne shellsupports the abbreviations listed in the "Options" table in, except-A,-b,-C,-m,-p,and -s.

Environment files aren't supported; neither is the printcommand (use echo instead).The following built-in variables aren't supported:

.sh.edchar.sh.versionHISTEDITLINENOPS4
.sh.edcolCOLUMNSHISTFILELINESPWD
.sh.edmodeEDITORHISTSIZEOLDPWDRANDOM
.sh.edtextENVLANGOPTARGREPLY
.sh.matchFCEDITLC_ALLOPTINDSECONDS
.sh.nameFIGNORELC_COLLATEPPIDTMOUT
.sh.subscriptFPATHLC_CTYPEPS3VISUAL
.sh.valueHISTCMDLC_NUMERIC

Some of these variables (e.g., EDITOR and VISUAL )are still used by other programs, like mail and news readers.

Extended variable names (those with a dot in them), as well as compoundvariable assignment are not available, nor is string concatenationwith the += operator.

Indirect variables (namerefs) are not available.

The whence command is not available; usetype instead.

The pattern-matching variable operators( % , %% , # , ## , etc.)and advanced (regular expression) wildcards are not available; usethe external command expr instead.

Autoloaded functions are not available, andonly POSIX-style functions (those defined using the name () syntax) may be used.

Command substitution syntax is different: use the older ` command ` instead of $( command ) .(Some vendors have enhanced their Bourne shells to support the $( command ) notation, since it's defined by the POSIX standard.)

return may only be used from within a function.

Conditional tests use older syntax: [ condition ] or test condition instead of [[ condition ]] .These are actually two forms of the same command(see the test(1) manual page).

The logical operators && and || are -a and -o instead.Supported test operators differ from system to system.

[146]In the original Version 7 Bourne Shell(and in Berkeley Unix systems through 4.3BSD),test and [ condition ] were actually external commands. (They were hard links to eachother in /bin.) However, they've been built intothe Bourne shell in all systems since System III (circa 1981).

The ! keywordto reverse the exit status of a commandwas not in the SVR4 Bourne shell,although it may be available on your system, since it isrequired by POSIX.

The select construct isn't supported.Neither is the arithmetic for loop,and there is no way to fall through from one case to anotherinside a case statement.

There is no equivalent for TMOUT .

The SVR4 Bourne shell getopts command is similar, butnot identical to, that in ksh.It does not allow options that begin with a plus sign,nor any of the advanced features described in.

Arithmetic isn't supported: use the external commandexpr instead ofthe $(( ... )) syntax. For numeric conditionals, use the old condition test syntaxand relational operators -lt, -eq, etc., instead of (( ... )) .let isn't supported.

Array variables and the typeset command are not supported.

The following I/O redirectors are not supported:

[147]The <> operator was in the original Version 7 Bourne shell,but not documented, since it didn't always work correctly across all Unix systems.Its availability should not be relied upon for Bourne shell programming.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Learning the Korn Shell (2nd Edition)»

Look at similar books to Learning the Korn Shell (2nd Edition). We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Learning the Korn Shell (2nd Edition)»

Discussion, reviews of the book Learning the Korn Shell (2nd Edition) and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.