Home
last modified time | relevance | path

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

12345678910

/dflybsd-src/usr.bin/newgrp/
H A Dnewgrp.c258 const char *shell; in loginshell() local
261 shell = pwd->pw_shell; in loginshell()
262 if (*shell == '\0') in loginshell()
263 shell = _PATH_BSHELL; in loginshell()
284 if (setenv("SHELL", shell, 1) == -1) in loginshell()
297 if (asprintf(args, "-%s", basename(strdup(shell))) < 0) in loginshell()
301 execv(shell, args); in loginshell()
302 err(1, "%s", shell); in loginshell()
308 const char *shell; in doshell() local
310 shell = pwd->pw_shell; in doshell()
[all …]
/dflybsd-src/contrib/file/magic/Magdir/
H A Dcommands6 #0 string/w : shell archive or script for antique kernel text
7 0 string/fwt #!\ /bin/sh POSIX shell script text executable
9 0 string/fwb #!\ /bin/sh POSIX shell script executable (binary data)
12 0 string/fwt #!\ /bin/csh C shell script text executable
15 # korn shell magic, sent by George Wu, gwu@clyde.att.com
16 0 string/fwt #!\ /bin/ksh Korn shell script text executable
18 0 string/fwb #!\ /bin/ksh Korn shell script executable (binary data)
21 0 string/fwt #!\ /bin/tcsh Tenex C shell script text executable
23 0 string/fwt #!\ /usr/bin/tcsh Tenex C shell script text executable
25 0 string/fwt #!\ /usr/local/tcsh Tenex C shell script text executable
[all …]
/dflybsd-src/contrib/bmake/
H A Djob.c419 static Shell *shell = &shells[DEFSHELL_INDEX]; variable
796 if (shell->hasEchoCtl) in ShellWriter_EchoOff()
797 ShellWriter_WriteLine(wr, shell->echoOff); in ShellWriter_EchoOff()
803 ShellWriter_WriteFmt(wr, shell->echoTmpl, escCmd); in ShellWriter_EchoCmd()
809 if (shell->hasEchoCtl) in ShellWriter_EchoOn()
810 ShellWriter_WriteLine(wr, shell->echoOn); in ShellWriter_EchoOn()
827 ShellWriter_WriteLine(wr, shell->errOff); in ShellWriter_ErrOff()
837 ShellWriter_WriteLine(wr, shell->errOn); in ShellWriter_ErrOn()
864 *inout_cmdTemplate = shell->runIgnTmpl; in JobWriteSpecialsEchoCtl()
884 } else if (shell->hasErrCtl) in JobWriteSpecials()
[all …]
/dflybsd-src/tools/regression/bin/sh/builtins/
H A Dcommand6.0.stdout1 true is a shell builtin
3 fun is a shell function
4 break is a special shell builtin
5 if is a shell keyword
6 { is a shell keyword
H A Dcommand5.0.stdout2 true is a shell builtin
4 fun is a shell function
5 break is a special shell builtin
6 if is a shell keyword
7 { is a shell keyword
/dflybsd-src/usr.bin/apply/
H A Dapply.c59 char *c, *cmd, *name, *p, *q, *shell, *slashp, *tmpshell; in main() local
111 shell = name = NULL; in main()
113 shell = (tmpshell != NULL) ? strdup(tmpshell) : strdup(_PATH_BSHELL); in main()
114 if (shell == NULL) in main()
116 slashp = strrchr(shell, '/'); in main()
117 name = (slashp != NULL) ? slashp + 1 : shell; in main()
207 if (exec_shell(c, shell, name)) in main()
217 free(shell); in main()
/dflybsd-src/usr.sbin/chroot/
H A Dchroot.c56 const char *shell; in main() local
161 if (!(shell = getenv("SHELL"))) in main()
162 shell = _PATH_BSHELL; in main()
163 execlp(shell, shell, "-i", NULL); in main()
164 err(1, "%s", shell); in main()
/dflybsd-src/usr.bin/su/
H A Dsu.c154 const char *p = NULL, *user, *shell, *mytty, **nargv; in main() local
163 shell = class = cleanenv = NULL; in main()
267 shell = strncpy(shellbuf, pwd->pw_shell, in main()
272 shell = _PATH_BSHELL; in main()
374 shell = pwd->pw_shell; in main()
378 shell = _PATH_BSHELL; in main()
384 p = strrchr(shell, '/'); in main()
388 p = shell; in main()
514 if (setenv("SHELL", shell, 1) == -1) in main()
515 err(1, "setenv: cannot set SHELL=%s", shell); in main()
[all …]
/dflybsd-src/contrib/less/
H A Dlsystem.c48 constant char *shell; in lsystem() local
129 if ((shell = lgetenv("SHELL")) != NULL && *shell != '\0') in lsystem()
132 p = save(shell); in lsystem()
138 size_t len = strlen(shell) + strlen(esccmd) + 5; in lsystem()
140 SNPRINTF3(p, len, "%s %s %s", shell, shell_coption(), esccmd); in lsystem()
/dflybsd-src/usr.bin/script/
H A Dscript.c291 const char *shell; in doshell() local
293 shell = getenv("SHELL"); in doshell()
294 if (shell == NULL) in doshell()
295 shell = _PATH_BSHELL; in doshell()
306 execl(shell, shell, "-i", (char *)NULL); in doshell()
307 warn("%s", shell); in doshell()
/dflybsd-src/contrib/gdb-7/readline/doc/
H A Dhsuser.texi72 the shell provides access to the @dfn{command history},
74 The value of the @env{HISTSIZE} shell variable is used as the
78 The shell stores each command in the history list prior to
81 values of the shell variables
84 When the shell starts up, the history is initialized from the
89 When an interactive shell exits, the last
92 If the @code{histappend} shell option is set (@pxref{Bash Builtins}),
116 The shell allows control over which commands are saved on the history
118 variables may be set to cause the shell to save only a subset of the
121 shell option, if enabled, causes the shell to attempt to save each
[all …]
/dflybsd-src/usr.sbin/jail/
H A Djail.c61 const char *shell, *p = NULL; in main() local
158 shell = pwd->pw_shell; in main()
160 shell = _PATH_BSHELL; in main()
164 setenv("SHELL", shell, 1); in main()
/dflybsd-src/contrib/tcsh-6/nls/greek/
H A Dset135 33 Δεν υπάρχει έλεγχος εργασιών σε αυτό το shell
74 72 Δεν έχει γίνει login με αυτό το shell
78 76 Δεν μπορώ (ακόμα) να αναβάλω το login shell
H A Dset137 5 %S: εσωτερική εντολή του shell.\n
11 9 Tο %S είναι εσωτερική εντολή του shell\n
/dflybsd-src/usr.bin/limits/
H A Dlimits.c630 getshellbyname(const char * shell) in getshellbyname() argument
634 const char * p = strrchr(shell, '/'); in getshellbyname()
636 p = p ? p + 1 : shell; in getshellbyname()
671 char * shell = getenv("SHELL"); in getshelltype() local
673 if (shell != NULL && stat(shell, &st) != -1) { in getshelltype()
679 return getshellbyname(shell); in getshelltype()
/dflybsd-src/crypto/openssh/
H A Dsshconnect.c120 char *shell; in ssh_proxy_fdpass_connect() local
122 if ((shell = getenv("SHELL")) == NULL) in ssh_proxy_fdpass_connect()
123 shell = _PATH_BSHELL; in ssh_proxy_fdpass_connect()
158 argv[0] = shell; in ssh_proxy_fdpass_connect()
202 char *shell; in ssh_proxy_connect() local
204 if ((shell = getenv("SHELL")) == NULL || *shell == '\0') in ssh_proxy_connect()
205 shell = _PATH_BSHELL; in ssh_proxy_connect()
241 argv[0] = shell; in ssh_proxy_connect()
1696 char *shell; in ssh_local_cmd() local
1705 if ((shell = getenv("SHELL")) == NULL || *shell == '\0') in ssh_local_cmd()
[all …]
H A Dauth.c122 char *shell = xstrdup((pw->pw_shell[0] == '\0') ? in allowed_user() local
125 if (stat(shell, &st) == -1) { in allowed_user()
127 "does not exist", pw->pw_name, shell); in allowed_user()
128 free(shell); in allowed_user()
134 "is not executable", pw->pw_name, shell); in allowed_user()
135 free(shell); in allowed_user()
138 free(shell); in allowed_user()
H A Dsession.c722 char *shell = s->pw->pw_shell; in do_exec() local
724 if (shell[0] == '\0') /* empty shell means /bin/sh */ in do_exec()
725 shell =_PATH_BSHELL; in do_exec()
726 mm_audit_run_command(shell); in do_exec()
971 do_setup_env(struct ssh *ssh, Session *s, const char *shell) in do_setup_env() argument
1049 child_set_env(&env, &envsize, "SHELL", shell); in do_setup_env()
1190 do_rc_files(struct ssh *ssh, Session *s, const char *shell) in do_rc_files() argument
1205 if (xasprintf(&cmd, "%s -c '%s %s'", shell, _PATH_BSHELL, in do_rc_files()
1508 const char *shell, *shell0; in do_child() local
1560 shell = (pw->pw_shell[0] == '\0') ? _PATH_BSHELL : pw->pw_shell; in do_child()
[all …]
/dflybsd-src/bin/sh/
H A DTOUR5 does not represent the current state of the shell. It is provided anyway
6 since it provides helpful information for how the shell is structured,
7 but be warned that things have changed -- the current shell is
40 INTERRUPTS: In an interactive shell, an interrupt will cause an
76 called from main to parse the shell arguments when the shell is
103 (AT&T has been maintaining the Bourne shell for more than ten
226 mand. Variables which the shell references internally are preal-
227 located so that the shell can reference the values of these vari-
247 normally terminates the shell (or returns to the main command
248 loop if the shell is interactive), but when called from a non-
[all …]
/dflybsd-src/usr.bin/login/
H A Dlogin.c162 const char *shell = NULL; in main() local
414 shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell); in main()
421 if (*shell == '\0') /* Not overridden */ in main()
422 shell = pwd->pw_shell; in main()
423 if ((shell = strdup(shell)) == NULL) { in main()
647 execlp(shell, arg0, NULL); in main()
648 err(1, "%s", shell); in main()
/dflybsd-src/usr.sbin/cron/cron/
H A Ddo_command.c302 char *shell = env_get("SHELL", e->envp); in child_process() local
309 "\tcmd='%s' shell='%s'\n", e->cmd, shell); in child_process()
313 execle(shell, shell, "-c", e->cmd, NULL, e->envp); in child_process()
314 warn("execl: couldn't exec `%s'", shell); in child_process()
/dflybsd-src/contrib/tcsh-6/nls/spanish/
H A Dset137 5 %S: comando integrado en la shell.\n
11 9 %S es un comando integrado en la shell\n
/dflybsd-src/tools/regression/bin/sh/execution/
H A Dshellproc5.03 # Shells are not required to reject executing binary files as shell scripts
5 # shell scripts may have annoying side effects.
H A Dshellproc3.03 # Shells are not required to reject executing binary files as shell scripts
5 # shell scripts may have annoying side effects.
/dflybsd-src/contrib/tcsh-6/nls/french/
H A Dset137 5 %S: commande intégrée au shell.\n
11 9 %S est intégré(e) au shell\n

12345678910