Home
last modified time | relevance | path

Searched refs:shell (Results 1 – 25 of 165) sorted by relevance

1234567

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dsuid_exec.c89 static char *shell; variable
236 shell = getenv("SHELL"); in main()
237 if(shell == 0 || !endsh(shell) || ( in main()
238 !in_dir("/bin",shell) && in main()
239 !in_dir("/usr/bin",shell) && in main()
240 !in_dir("/usr/lbin",shell) && in main()
241 !in_dir("/usr/local/bin",shell))) in main()
242 shell = DEFSHELL; in main()
245 execv(shell,argv); in main()
253 static int endsh(register const char *shell) in endsh() argument
[all …]
/illumos-gate/usr/src/cmd/newgrp/
H A Dnewgrp.c85 char *shell, *dir, *name; in main() local
143 if ((shell = getenv("SHELL")) != NULL) { in main()
144 p->pw_shell = shell; in main()
174 if ((shell = (char *)malloc(len)) == NULL) in main()
176 (void) snprintf(shell, len, "-%s", p->pw_shell); in main()
177 simple = strrchr(shell, '/'); in main()
179 *(shell+1) = '\0'; in main()
180 shell = strcat(shell, ++simple); in main()
184 shell = p->pw_shell; in main()
186 (void) execl(p->pw_shell, shell, NULL); in main()
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/
H A DMakefile7 KVER = $(shell uname -r)
10 __ARCH=$(shell uname -m)
14 ifeq ($(shell ls /lib/modules/$(KVER)/build > /dev/null 2>&1 && echo build),)
16 _KVER=$(shell echo $(KVER) | cut -d "-" -f1,2)
17 _KFLA=$(shell echo $(KVER) | cut -d "-" -f3)
18 _ARCH=$(shell file -b /lib/modules/$(shell uname -r)/build | cut -d "/" -f5)
22 ifeq ($(shell ls /usr/src/linux-$(_KVER)-obj > /dev/null 2>&1 && echo linux),)
23 ifeq ($(shell ls /usr/src/kernels/$(KVER)-$(__ARCH) > /dev/null 2>&1 && echo linux),)
42 … /usr/src/linux-$(shell echo $(KVER) | sed "s|\(.*\)-\([a-z]*\)|\1-obj/$(BCMPROC)/\2|") \
46 BCMTSTDIR = $(shell if ls $(DIR) > /dev/null 2>&1; then echo $(DIR); fi)
[all …]
/illumos-gate/usr/src/cmd/runat/
H A Drunat.c57 char *shell; in main() local
90 shell = getenv("SHELL"); in main()
91 if (shell == NULL) { in main()
95 shell = "/bin/sh"; in main()
98 (void) execl(shell, shell, NULL); in main()
100 gettext("runat: Failed to exec %s: %s\n"), shell, in main()
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/
H A Dgentab.sh36 A1) shell=ksh
40 *) shell=bsh
68 do case $shell in
98 1:?*) case $shell in
179 *) case $shell in
207 case $shell in
219 1:?*) case $shell in
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/
H A Dmktest.sh20 : mktest - generate regress or shell regression test scripts
120 regress|shell)
123 *) print -u2 -r -- $command: --style=$OPTARG: regress or shell expected
179 shell) print -u$stdout -r -f ": $QUOTE"$'\n' -- "$*"
195 shell) print -u$stdout -r -f $'set x'
212 shell) print -u$stdout -r -- unset ${!STATE.RESET[@]} ;;
220 shell) print -u$stdout -r -f $'rm -f'
241 shell) print -u$stdout -r -f ": TEST %02d $QUOTE"$'\n' -- $TEST "$*"
428 shell) [[ $UMASK != $UMASK_ORIG ]] && print -u$stdout -r -f "{ umask $UMASK; "
493 if [[ $STYLE == shell ]]
[all …]
H A Diffe.sh400 -) case $shell in
409 echo "$command: your shell botches here documents; this was fixed back in the 80's" >&$stderr
673 *) case $shell in
689 case $shell in
1089 s) set="$set set shell $OPTARG :" ;;
1226 s) set="$set set shell $OPTARG :" ;;
1235 [-s shell-path] [-S[flags]] [-x cross-exec-prefix] [-I dir] [-L dir] [-X dir] [ - ]
1358 then case $shell in
1452 case $shell in
1476 run) case $shell in
[all …]
/illumos-gate/usr/src/cmd/make/lib/mksh/
H A Ddosys.cc156 Name shell = getvar(shell_name); in doshell() local
161 if (IS_EQUAL(shell->string_mb, "")) { in doshell()
162 shell = shell_name; in doshell()
164 if ((shellname = strrchr(shell->string_mb, (int) slash_char)) == NULL) { in doshell()
165 shellname = shell->string_mb; in doshell()
207 (void) execve(shell->string_mb, argv, environ); in doshell()
209 shell->string_mb, in doshell()
243 Name shell = getvar(shell_name); in exec_vp() local
248 if (IS_EQUAL(shell->string_mb, "")) { in exec_vp()
249 shell = shell_name; in exec_vp()
[all …]
H A Dmksh.cc63 static void init_mksh_globals(char *shell);
80 init_mksh_globals(char *shell) in init_mksh_globals() argument
90 dmake_shell = shell; in init_mksh_globals()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dfmtesc.c59 int shell; in fmtquote() local
69 shell = 0; in fmtquote()
75 shell = 1; in fmtquote()
177 if (singlequote || shell) in fmtquote()
183 if (shell) in fmtquote()
202 …else if (!spaced && !escaped && (isspace(c) || ((flags & FMT_SHELL) || shell) && (strchr("\";~&|()… in fmtquote()
210 buf += shell + !spaced; in fmtquote()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/
H A DDESIGN6 The files nval.h and shell.h are intended to be public
20 The fun directory contains some shell function such as
37 where shell_path is an absolute pathname for the shell to
41 RELEASE file, the ksh93 man file (sh.1) and nval.3 and shell.3
47 bash if the shell is compiled with SHOPT_BASH and the shell
86 15. shell.h is the public interface for shell functions
87 that are documented int shell.3.
101 shell timeout.
104 shell variables.
108 1. args.c contains functions for parsing shell options
[all …]
H A Dsh.memo16 (shell) for the UNIX*
22 is essentially compatible with the System V version of the Bourne shell\*(Rf,
36 shell standard.
39 is related to shell programming.
71 assumes that the reader is already familiar with the Bourne shell.
73 relative to the Bourne shell; both
80 The term "shell" is used to describe a program that provides
87 system shell is a user level program, and not part of
89 anyone can write a new shell or modify an existing one.
93 The most widely available UNIX system shells are the Bourne shell\*(Rf,
[all …]
H A DOBSOLETE90 invocation of the shell.
92 invocations of the shell should
104 The shell environment variable
127 The shell command line option
129 is obsolete. This option cause the shell to exit after reading
150 These options can also be used upon invocation of the shell.
H A DPROMO.mm6 The KornShell is a shell programming language,
12 shell "csh". With KSH-93, medium-sized programming tasks can be
13 performed at shell-level without a significant loss in performance.
29 function records commands entered at any shell level and stores
67 than the System V Bourne shell. A major reason for this is
89 an existing command or shell script.
100 field width, and justification to shell variables.
127 invoked by name, rather than as an argument to the shell.
H A DMakefile5 SH := $(PWD:B:/[0-9]*$//:N=ksh*:-ksh) /* name of the shell program */
25 SHOPT_BRACEPAT == 1 /* C-shell {...,...} expansions (, required) */
38 SHOPT_KIA == 1 /* shell information database generation */
H A DREADME11 the sh directory. However, the shell editing and history routines
12 are in the edit sub-directory. The code for shell built-ins is
14 data tables and messages that are used by the shell. The include
36 BRACEPAT on C-shell type abc{d,e}f style file generation
47 CRNL off <cr><nl> treated as <nl> in shell grammar.
57 KIA off Allow generation of shell cross reference database with -I.
68 PFSH off Compile with support for profile shell.
77 exiting the shell when you don't enter a command. If
95 shell, then you can run the script mamexec < Mamfile to build ksh.
115 To be able to run setuid/setgid shell scripts, or scripts without read
[all …]
/illumos-gate/usr/src/cmd/script/
H A Dscript.c48 char *shell; variable
78 shell = getenv("SHELL"); in main()
79 if (shell == NULL) in main()
80 shell = "/bin/sh"; in main()
214 execl(shell, shell, "-i", (char *)0); in doshell()
215 perror(shell); in doshell()
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_rexd.c148 audit_rexd_fail(msg, hostname, user, uid, gid, shell, cmd) in audit_rexd_fail() argument
154 char *shell; /* login shell of user requesting service */
228 audit_cmd[0] = shell;
267 audit_rexd_success(hostname, user, uid, gid, shell, cmd) in audit_rexd_success() argument
272 char *shell; /* login shell of user requesting service */
305 if (shell == NULL)
306 shell = empty;
346 audit_cmd[0] = shell;
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dusermod.c98 static char *shell = NULL; /* shell from command line */ variable
228 shell = optarg;
527 if (shell) {
528 if (REL_PATH(shell)) {
529 errmsg(M_RELPATH, shell);
532 if (strcmp(pstruct->pw_shell, shell) == 0) {
534 shell = NULL;
536 if (stat(shell, &statbuf) < 0 ||
540 errmsg(M_INVALID, shell, "shell");
627 if (shell) { /* shell */
[all …]
H A Duseradd.c117 static char *shell = NULL; /* shell from command line */ variable
220 shell = optarg;
379 if (shell != NULL) {
380 valid_input(SHELL, shell);
381 usrdefs->defshell = shell;
535 if (shell != NULL)
536 valid_input(SHELL, shell);
538 shell = usrdefs->defshell;
595 nargv[argindex++] = shell;
/illumos-gate/usr/src/grub/grub-0.97/util/
H A Dgrub-md5-crypt.in39 --grub-shell=FILE use FILE as the grub shell
51 --grub-shell=*)
/illumos-gate/usr/src/cmd/refer/
H A DMakefile40 refer5.o refer6.o refer7.o refer8.o shell.o sortbib.o \
85 hunt7.o glue5.o refer3.o shell.o \
91 glue5.o refer0.o shell.o
132 hunt7.c glue5.c refer3.c shell.c \
138 glue5.c refer0.c shell.c $(LDLIBS)
/illumos-gate/usr/src/lib/librstp/common/
H A DREADME17 1. In one shell run 'mngr'
22 2. In another shell run bridge instance.
28 separate shell (this way you will be able manage them).
/illumos-gate/usr/src/cmd/tip/
H A Dcmdtab.c14 extern void shell(int), getfl(int), tip_sendfile(int), chdirectory(int);
20 { '!', NORM, "shell", shell },
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_data.c71 unsigned char shell[ONMSZ] = { variable
114 (unsigned char *)"shell", (unsigned char *)"sh", STRING, 0, 0, shell,

1234567