Главная » Просмотр файлов » UNIX Reference Manual

UNIX Reference Manual (794271), страница 7

Файл №794271 UNIX Reference Manual (UNIX Reference Manual) 7 страницаUNIX Reference Manual (794271) страница 72019-05-08СтудИзба
Просмтор этого файла доступен только зарегистрированным пользователям. Но у нас супер быстрая регистрация: достаточно только электронной почты!

Текст из файла (страница 7)

Each word in the variable path names a directory from which the shell will attemptto execute the command. If it is given neither a −c nor a −t option, the shell will hash the names in thesedirectories into an internal table so that it will only try an exec in a directory if there is a possibility that thecommand resides there. This shortcut greatly speeds command location when many directories are presentin the search path. If this mechanism has been turned off (via unhash), or if the shell was given a −c or−t argument, and in any case for each directory component of path that does not begin with a ‘/’, the shellconcatenates with the given command name to form a path name of a file which it then attempts to execute.Parenthesized commands are always executed in a subshell.

Thus(cd; pwd); pwdprints the home directory; leaving you where you were (printing this after the home directory), whilecd; pwdleaves you in the home directory. Parenthesized commands are most often used to prevent chdir from affecting the current shell.If the file has execute permissions but is not an executable binary to the system, then it is assumed to be a filecontaining shell commands and a new shell is spawned to read it.If there is an alias for shell then the words of the alias will be prepended to the argument list to form theshell command. The first word of the alias should be the full path name of the shell (e.g., ‘$shell’).

Notethat this is a special, late occurring, case of alias substitution, and only allows words to be prepended tothe argument list without change.Signal handlingThe shell normally ignores quit signals. Jobs running detached (either by & or the bg or %... & commands) are immune to signals generated from the keyboard, including hangups. Other signals have the values which the shell inherited from its parent. The shell’s handling of interrupts and terminate signals in shell4th Berkeley DistributionJanuary 21, 199419CSH ( 1 )UNIX Reference ManualCSH ( 1 )scripts can be controlled by onintr.

Login shells catch the terminate signal; otherwise this signal ispassed on to children from the state in the shell’s parent. Interrupts are not allowed when a login shell isreading the file .logout.AUTHORWilliam Joy. Job control and directory stack features first implemented by J.E. Kulp of IIASA, Laxenburg,Austria, with different syntax than that used now. File name completion code written by Ken Greer, HPLabs. Eight-bit implementation Christos S. Zoulas, Cornell University.FILES˜/.cshrc˜/.login˜/.logout/bin/sh/tmp/sh∗/etc/passwdRead at beginning of execution by each shell.Read by login shell, after ‘.cshrc’ at login.Read by login shell, at logout.Standard shell, for shell scripts not starting with a ‘#’.Temporary file for ‘<<’.Source of home directories for ‘˜name’.LIMITATIONSWord lengths − Words can be no longer than 1024 characters. The system limits argument lists to 10240characters.

The number of arguments to a command that involves filename expansion is limited to 1/6’th thenumber of characters allowed in an argument list. Command substitutions may substitute no more charactersthan are allowed in an argument list. To detect looping, the shell restricts the number of alias substitutionson a single line to 20.SEE ALSOsh(1), access(2), execve(2), fork(2), killpg(2), pipe(2), sigvec(2), umask(2),setrlimit(2), wait(2), tty(4), a.out(5), environ(7),introduction to the C shellHISTORYCsh appeared in 3BSD. It was a first implementation of a command language interpreter incorporating a history mechanism (see History Substitutions), job control facilities (see Jobs), interactive file name and username completion (see File Name Completion), and a C-like syntax.

There are now many shells that alsohave these mechanisms, plus a few more (and maybe some bugs too), which are available through the usenet.BUGSWhen a command is restarted from a stop, the shell prints the directory it started in if this is different fromthe current directory; this can be misleading (i.e., wrong) as the job may have changed directories internally.Shell builtin functions are not stoppable/restartable. Command sequences of the form ‘a ; b ; c’ are also nothandled gracefully when stopping is attempted.

If you suspend ‘b’, the shell will immediately execute ‘c’.This is especially noticeable if this expansion results from an alias. It suffices to place the sequence ofcommands in ()’s to force it to a subshell, i.e., ‘( a ; b ; c )’.Control over tty output after processes are started is primitive; perhaps this will inspire someone to work on agood virtual terminal interface. In a virtual terminal interface much more interesting things could be donewith output control.Alias substitution is most often used to clumsily simulate shell procedures; shell procedures should be provided instead of aliases.Commands within loops, prompted for by ‘?’, are not placed on the history list. Control structure shouldbe parsed instead of being recognized as built-in commands. This would allow control commands to beplaced anywhere, to be combined with ‘|’, and to be used with ‘&’ and ‘;’ metasyntax.4th Berkeley DistributionJanuary 21, 199420CSH ( 1 )UNIX Reference ManualCSH ( 1 )It should be possible to use the ‘:’ modifiers on the output of command substitutions.The way the filec facility is implemented is ugly and expensive.4th Berkeley DistributionJanuary 21, 199421.

Характеристики

Тип файла
PDF-файл
Размер
117,29 Kb
Материал
Тип материала
Высшее учебное заведение

Список файлов учебной работы

Свежие статьи
Популярно сейчас
Почему делать на заказ в разы дороже, чем купить готовую учебную работу на СтудИзбе? Наши учебные работы продаются каждый год, тогда как большинство заказов выполняются с нуля. Найдите подходящий учебный материал на СтудИзбе!
Ответы на популярные вопросы
Да! Наши авторы собирают и выкладывают те работы, которые сдаются в Вашем учебном заведении ежегодно и уже проверены преподавателями.
Да! У нас любой человек может выложить любую учебную работу и зарабатывать на её продажах! Но каждый учебный материал публикуется только после тщательной проверки администрацией.
Вернём деньги! А если быть более точными, то автору даётся немного времени на исправление, а если не исправит или выйдет время, то вернём деньги в полном объёме!
Да! На равне с готовыми студенческими работами у нас продаются услуги. Цены на услуги видны сразу, то есть Вам нужно только указать параметры и сразу можно оплачивать.
Отзывы студентов
Ставлю 10/10
Все нравится, очень удобный сайт, помогает в учебе. Кроме этого, можно заработать самому, выставляя готовые учебные материалы на продажу здесь. Рейтинги и отзывы на преподавателей очень помогают сориентироваться в начале нового семестра. Спасибо за такую функцию. Ставлю максимальную оценку.
Лучшая платформа для успешной сдачи сессии
Познакомился со СтудИзбой благодаря своему другу, очень нравится интерфейс, количество доступных файлов, цена, в общем, все прекрасно. Даже сам продаю какие-то свои работы.
Студизба ван лав ❤
Очень офигенный сайт для студентов. Много полезных учебных материалов. Пользуюсь студизбой с октября 2021 года. Серьёзных нареканий нет. Хотелось бы, что бы ввели подписочную модель и сделали материалы дешевле 300 рублей в рамках подписки бесплатными.
Отличный сайт
Лично меня всё устраивает - и покупка, и продажа; и цены, и возможность предпросмотра куска файла, и обилие бесплатных файлов (в подборках по авторам, читай, ВУЗам и факультетам). Есть определённые баги, но всё решаемо, да и администраторы реагируют в течение суток.
Маленький отзыв о большом помощнике!
Студизба спасает в те моменты, когда сроки горят, а работ накопилось достаточно. Довольно удобный сайт с простой навигацией и огромным количеством материалов.
Студ. Изба как крупнейший сборник работ для студентов
Тут дофига бывает всего полезного. Печально, что бывают предметы по которым даже одного бесплатного решения нет, но это скорее вопрос к студентам. В остальном всё здорово.
Спасательный островок
Если уже не успеваешь разобраться или застрял на каком-то задание поможет тебе быстро и недорого решить твою проблему.
Всё и так отлично
Всё очень удобно. Особенно круто, что есть система бонусов и можно выводить остатки денег. Очень много качественных бесплатных файлов.
Отзыв о системе "Студизба"
Отличная платформа для распространения работ, востребованных студентами. Хорошо налаженная и качественная работа сайта, огромная база заданий и аудитория.
Отличный помощник
Отличный сайт с кучей полезных файлов, позволяющий найти много методичек / учебников / отзывов о вузах и преподователях.
Отлично помогает студентам в любой момент для решения трудных и незамедлительных задач
Хотелось бы больше конкретной информации о преподавателях. А так в принципе хороший сайт, всегда им пользуюсь и ни разу не было желания прекратить. Хороший сайт для помощи студентам, удобный и приятный интерфейс. Из недостатков можно выделить только отсутствия небольшого количества файлов.
Спасибо за шикарный сайт
Великолепный сайт на котором студент за не большие деньги может найти помощь с дз, проектами курсовыми, лабораторными, а также узнать отзывы на преподавателей и бесплатно скачать пособия.
Популярные преподаватели
Добавляйте материалы
и зарабатывайте!
Продажи идут автоматически
6274
Авторов
на СтудИзбе
316
Средний доход
с одного платного файла
Обучение Подробнее