| /freebsd-9-stable/usr.bin/newgrp/ |
| D | newgrp.c | 260 const char *shell; in loginshell() local 263 shell = pwd->pw_shell; in loginshell() 264 if (*shell == '\0') in loginshell() 265 shell = _PATH_BSHELL; in loginshell() 284 setenv("SHELL", shell, 1); in loginshell() 291 if (asprintf(args, "-%s", basename(shell)) < 0) in loginshell() 295 execv(shell, args); in loginshell() 296 err(1, "%s", shell); in loginshell() 302 const char *shell; in doshell() local 304 shell = pwd->pw_shell; in doshell() [all …]
|
| /freebsd-9-stable/contrib/ipfilter/test/input/ |
| D | ni20 | 1 # 192.168.113.3.1009 > 10.1.1.4.shell: SYN win 32768 <mss 1460,nop,wscale 0,sackOK,nop,nop,nop,nop,… 8 # 192.168.113.4.shell > 192.168.113.3.1009: SYN win 5840 <mss 1460,nop,nop,sackOK,nop,wscale 2> 15 # 192.168.113.3.1009 > 10.1.1.4.shell 21 # 192.168.113.3.1009 > 10.1.1.4.shell 27 # 192.168.113.4.shell > 192.168.113.3.1009 54 # 192.168.113.3.1009 > 10.1.1.4.shell 60 # 192.168.113.4.shell > 192.168.113.3.1009 66 # 192.168.113.3.1009 > 10.1.1.4.shell 75 # 192.168.113.4.shell > 192.168.113.3.1009 81 # 192.168.113.4.shell > 192.168.113.3.1009 [all …]
|
| D | ni19 | 1 # 192.168.113.3.1009 > 10.1.1.4.shell: SYN win 32768 <mss 1460,nop,wscale 0,sackOK,nop,nop,nop,nop,… 8 # 10.1.1.4.shell > 10.1.1.1.1009: SYN win 5840 <mss 1460,nop,nop,sackOK,nop,wscale 2> 15 # 192.168.113.3.1009 > 10.1.1.4.shell 21 # 192.168.113.3.1009 > 10.1.1.4.shell 27 # 10.1.1.4.shell > 10.1.1.1.1009 54 # 192.168.113.3.1009 > 10.1.1.4.shell 60 # 10.1.1.4.shell > 10.1.1.1.1009 66 # 192.168.113.3.1009 > 10.1.1.4.shell 75 # 10.1.1.4.shell > 10.1.1.1.1009 81 # 10.1.1.4.shell > 10.1.1.1.1009 [all …]
|
| /freebsd-9-stable/contrib/file/magic/Magdir/ |
| D | commands | 6 #0 string/w : shell archive or script for antique kernel text 7 0 string/wt #!\ /bin/sh POSIX shell script text executable 9 0 string/wb #!\ /bin/sh POSIX shell script executable (binary data) 12 0 string/wt #!\ /bin/csh C shell script text executable 15 # korn shell magic, sent by George Wu, gwu@clyde.att.com 16 0 string/wt #!\ /bin/ksh Korn shell script text executable 18 0 string/wb #!\ /bin/ksh Korn shell script executable (binary data) 21 0 string/wt #!\ /bin/tcsh Tenex C shell script text executable 23 0 string/wt #!\ /usr/bin/tcsh Tenex C shell script text executable 25 0 string/wt #!\ /usr/local/tcsh Tenex C shell script text executable [all …]
|
| /freebsd-9-stable/tools/regression/usr.bin/make/shell/path_select/ |
| D | Makefile | 15 .SHELL: name=sh path=${.CURDIR}/shell 17 @: This is the shell. 21 .SHELL: name=csh path=${.CURDIR}/shell 23 @: This is the C-shell. 27 .SHELL: name=ksh path=${.CURDIR}/shell 29 @: This is the Korn-shell.
|
| /freebsd-9-stable/usr.sbin/setpmac/ |
| D | setpmac.c | 60 const char *shell; in main() local 86 if (!(shell = getenv("SHELL"))) in main() 87 shell = _PATH_BSHELL; in main() 88 execlp(shell, shell, "-i", (char *)NULL); in main() 89 err(1, "%s", shell); in main()
|
| /freebsd-9-stable/tools/regression/bin/sh/builtins/ |
| D | command6.0.stdout | 1 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
|
| D | command5.0.stdout | 2 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
|
| /freebsd-9-stable/usr.bin/apply/ |
| D | apply.c | 68 char *cmd, *name, *p, *shell, *slashp, *tmpshell; in main() local 120 shell = name = NULL; in main() 122 shell = (tmpshell != NULL) ? strdup(tmpshell) : strdup(_PATH_BSHELL); in main() 123 if (shell == NULL) in main() 125 slashp = strrchr(shell, '/'); in main() 126 name = (slashp != NULL) ? slashp + 1 : shell; in main() 206 if (exec_shell(sbuf_data(cmdbuf), shell, name)) in main() 215 free(shell); in main()
|
| /freebsd-9-stable/usr.sbin/chroot/ |
| D | chroot.c | 69 const char *shell; in main() local 172 if (!(shell = getenv("SHELL"))) in main() 173 shell = _PATH_BSHELL; in main() 174 execlp(shell, shell, "-i", (char *)NULL); in main() 175 err(1, "%s", shell); in main()
|
| /freebsd-9-stable/cddl/contrib/dtracetoolkit/Examples/ |
| D | sh_wasted_example.txt | 1 Many shell programmers are in the habit of using calls to external commands 2 instead of using shell built-in commands (an example of this is a call to 3 usr/bin/echo instead of using the echo command built into the shell. 5 This script shows sh_wasted.d tracing a shell script that calls /usr/bin/echo 24 microseconds; time wasted by the shell having to access an external command. 27 Here we trace the same script, except it uses the shell built-in echo command.
|
| /freebsd-9-stable/release/picobsd/tinyware/oinit/ |
| D | README | 4 version of init(8) combined with a shell. 11 * provides minimalistic user interface, called "shell()", 14 (*very* primitive, but doesn't require any real shell to run it!), 15 * doesn't require the whole chain of init->getty->login->shell to be run, 27 providing shell() interface. Currently it doesn't require (and is unable to 61 exit exit from shell (oinit will start a new one after some delay) 68 as daemon. This is NOT the same as in normal shell, where the '&' puts a 77 WARNING: this pseudo-shell doesn't do any expansion whatsoever. 94 - shell(): 104 - implement as a routine (like shell()) a small remote login daemon telnet(), [all …]
|
| /freebsd-9-stable/contrib/wpa/wpa_supplicant/dbus/ |
| D | Makefile | 41 DBUS_LIBS := $(shell pkg-config --libs dbus-1) 44 DBUS_INCLUDE := $(shell pkg-config --cflags dbus-1) 48 DBUS_INCLUDE += $(shell xml2-config --cflags) 49 DBUS_LIBS += $(shell xml2-config --libs) 52 dbus_version=$(subst ., ,$(shell pkg-config --modversion dbus-1))
|
| /freebsd-9-stable/contrib/less/ |
| D | lsystem.c | 47 register char *shell; local 131 if ((shell = lgetenv("SHELL")) != NULL && *shell != '\0') 134 p = save(shell); 140 int len = (int) (strlen(shell) + strlen(esccmd) + 5); 142 SNPRINTF3(p, len, "%s %s %s", shell, shell_coption(), esccmd);
|
| /freebsd-9-stable/sbin/init/ |
| D | init.c | 650 const char *shell; in single_user() local 672 shell = get_shell(); in single_user() 713 write_stderr(shell); in single_user() 720 shell = altshell; in single_user() 741 execv(shell, argv); in single_user() 742 emergency("can't exec %s for single user: %m", shell); in single_user() 830 const char *shell; in run_script() local 833 shell = get_shell(); in run_script() 857 execv(shell, argv); in run_script() 858 stall("can't exec %s for %s: %m", shell, script); in run_script() [all …]
|
| /freebsd-9-stable/usr.bin/su/ |
| D | su.c | 166 const char *p, *user, *shell, *mytty, **nargv; in main() local 175 shell = class = cleanenv = NULL; in main() 278 shell = strncpy(shellbuf, pwd->pw_shell, in main() 283 shell = _PATH_BSHELL; in main() 385 shell = pwd->pw_shell; in main() 389 shell = _PATH_BSHELL; in main() 395 p = strrchr(shell, '/'); in main() 399 p = shell; in main() 516 setenv("SHELL", shell, 1); in main() 554 execv(shell, np.b); in main() [all …]
|
| /freebsd-9-stable/contrib/sendmail/contrib/ |
| D | passwd-to-alias.pl | 13 ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$dir,$shell) = @a; 17 if (!-d $dir || !-x $shell || $shell =~ m!/bin/(false|true)$!) {
|
| /freebsd-9-stable/tools/regression/usr.bin/make/shell/path/ |
| D | Makefile | 17 @: This is the shell. 23 @: This is the C-shell. 29 @: This is the Korn-shell.
|
| /freebsd-9-stable/crypto/heimdal/appl/su/ |
| D | su.c | 429 char *shell; in main() local 477 shell = login_info->pw_shell; in main() 479 shell = su_info->pw_shell; in main() 480 if(shell == NULL || *shell == '\0') in main() 481 shell = _PATH_BSHELL; in main() 568 esetenv("SHELL", shell, 1); in main() 576 p = strrchr(shell, '/'); in main() 580 p = shell; in main() 622 execv(shell, args); in main()
|
| /freebsd-9-stable/contrib/groff/contrib/groffer/ |
| D | README_SH | 1 Additional description for the shell version of `groffer' 6 The shell version of `groffer' contains two files, `groffer.sh' and 10 can be run with a very poor Bourne shell. It just contains some basic 12 determination of the shell for `groffer2.sh'. This script is 20 different shell, using the `groffer' option `--shell'. 42 `exit' can only escape from the current shell; trouble occurs in 118 The `groffer' shell scripts are compatible to both the GNU and the 119 POSIX shell and utilities. Care was taken to restrict the programming 133 without problems in Linux Debian. A shell can be tested by the 134 `groffer' option `--shell', but that will run only with groffer2.sh. [all …]
|
| D | ChangeLog | 94 ### automatic shell determination 97 - If no option --shell is given perform a test of several shells 98 to automatically start some shell for groffer2.sh. `ksh' is used 100 - This can be cancelled by providing --shell=''. 103 * groffer.man: Revise information on --shell. 124 test (especially for shell `ksh'). 146 - This makes a `set' in the shell determination unnecessary. 157 - --debug-all, --debug-lm, --debug-params, --debug-shell, 170 - Move the test of rudimentary shell functionality at the 279 ### Rewrite the shell determination [all …]
|
| /freebsd-9-stable/contrib/binutils/binutils/ |
| D | configure.tgt | 2 # autoconf generated configure script. Putting it in a separate shell 6 # This file switches on the shell variable ${targ}, and sets the 7 # following shell variables:
|
| /freebsd-9-stable/crypto/openssh/ |
| D | sshconnect.c | 111 char *shell; in ssh_proxy_fdpass_connect() local 113 if ((shell = getenv("SHELL")) == NULL) in ssh_proxy_fdpass_connect() 114 shell = _PATH_BSHELL; in ssh_proxy_fdpass_connect() 148 argv[0] = shell; in ssh_proxy_fdpass_connect() 189 char *shell; in ssh_proxy_connect() local 191 if ((shell = getenv("SHELL")) == NULL || *shell == '\0') in ssh_proxy_connect() 192 shell = _PATH_BSHELL; in ssh_proxy_connect() 225 argv[0] = shell; in ssh_proxy_connect() 1411 char *shell; in ssh_local_cmd() local 1420 if ((shell = getenv("SHELL")) == NULL || *shell == '\0') in ssh_local_cmd() [all …]
|
| /freebsd-9-stable/contrib/libreadline/doc/ |
| D | hsuser.texi | 70 the shell provides access to the @dfn{command history}, 72 The value of the @env{HISTSIZE} shell variable is used as the 76 The shell stores each command in the history list prior to 79 values of the shell variables 82 When the shell starts up, the history is initialized from the 87 When an interactive shell exits, the last 90 If the @code{histappend} shell option is set (@pxref{Bash Builtins}), 110 The shell allows control over which commands are saved on the history 112 variables may be set to cause the shell to save only a subset of the 115 shell option, if enabled, causes the shell to attempt to save each [all …]
|
| /freebsd-9-stable/usr.sbin/sysinstall/ |
| D | user.c | 71 shell[SHELL_FIELD_LEN]; variable 145 shell, STRINGOBJ, NULL }, 436 if (strlen(shell) > 0) { in verifyUserSettings() 439 if (strcmp(cp, shell) == 0) in verifyUserSettings() 447 "Use it anyway?\n", shell); in verifyUserSettings() 551 strncpy(shell, cp2, sizeof shell); in completeUser() 594 ADDVEC(shell, "-s"); in addUser() 703 CLEAR(shell); in userAddUser()
|