Searched refs:script (Results 1 - 25 of 48) sorted by relevance

12

/ast/src/cmd/INIT/
H A Dmprobe.sh20 : mam probe script
H A Dmamprobe.sh20 ### this script contains archaic constructs that work with all sh variants ###
72 [d:debug?Enable probe script debug trace.]
127 # find the make probe script
134 script=lib/probe/C/make/probe
137 0) echo "$0: ../$script: probe script not found on PATH" >&2
144 makeprobe=`echo $1 | sed 's,[^/]*$,'$script,`
/ast/src/cmd/ksh93/tests/
H A Drestricted.sh63 print 'echo hello' > script
64 chmod +x ./script
65 ! check_restricted script || err_exit 'script without builtins should run in restricted mode'
66 check_restricted ./script || err_exit 'script with / in name should not run in restricted mode'
67 print '/bin/echo hello' > script
68 ! check_restricted script || err_exit 'script with pathnames should run in restricted mode'
69 print 'echo hello> file' > script
[all...]
H A Dbasic.sh118 cat > $tmp/script <<- !
122 chmod 755 $tmp/script
123 if [[ $($tmp/script) != "$tmp/script" ]]
124 then err_exit '$0 not correct for #! script'
165 then err_exit "script not working"
168 then err_exit "script | cat not working"
186 cat > $tmp/script <<\!
194 chmod +x $tmp/script
195 case $( (print) | $tmp/script;
[all...]
H A Dfunctions.sh142 cat > $tmp/script <<-\!
145 chmod +x $tmp/script
148 $tmp/script "$@"
153 cat > $tmp/script <<-\!
161 if ! $tmp/script
164 if ! $SHELL -c $tmp/script
167 $SHELL -c "trap 'rm $tmp/script' EXIT"
168 if [[ -f $tmp/script ]]
171 cat > $tmp/script <<- \EOF
180 chmod +x $tmp/script
[all...]
H A Dvariables.sh438 cat > $tmp/script <<-\!
455 chmod +x $tmp/script
456 . $tmp/script 1
457 [[ $file == $tmp/script ]] || err_exit ".sh.file not working for dot scripts"
458 [[ $($SHELL $tmp/script) == $tmp/script ]] || err_exit ".sh.file not working for scripts"
459 [[ $(posixfun .sh.file) == $tmp/script ]] || err_exit ".sh.file not working for posix functions"
460 [[ $(fun .sh.file) == $tmp/script ]] || err_exit ".sh.file not working for functions"
496 print 'print ${VAR}' > $tmp/script
498 VAR=new $tmp/script >
[all...]
H A Dio.sh48 [[ $a == foo ]] || err_exit "bad file descriptor $i in comsub script"
119 then err_exit "picked up file descriptor zero for opening script file"
140 cat >| script <<-\!
146 chmod +x script
147 [[ $( $SHELL ./script) == $'hello\nworld' ]] || err_exit 'closing 3 & 4 causes script to fail'
177 script=$tmp/2
178 trap "rm -f \$script" EXIT
179 exec 9> \$script
189 chmod +x \$script
[all...]
H A Dheredoc.sh232 script=$f
245 } > $script
246 chmod +x $script
247 [[ $($SHELL $script) == hello ]] 2> /dev/null || err_exit 'heredoc embeded in command substitution fails at buffer boundary'
H A Dattributes.sh124 print 'typeset -i m=48/4+1;print -- $m' > $tmp/script
125 chmod +x $tmp/script
127 if [[ $($tmp/script) != 13 ]]
128 then err_exit 'attributes not cleared for script execution'
130 print 'print VAR=$VAR' > $tmp/script
132 $tmp/script > $tmp/script.1
133 [[ $(< $tmp/script.1) == VAR= ]] || err_exit 'typeset -L should not be inherited'
H A Darith.sh373 cat > $tmp/script <<-\!
419 chmod +x $tmp/script
420 [[ $($tmp/script 1) != '( bar=2 baz=3 foo=1 )' ]] 2>/dev/null && err_exit 'compound var arithmetic failed'
421 [[ $($tmp/script 2) != '( faz=0 )' ]] 2>/dev/null && err_exit 'compound var arithmetic failed'
422 [[ $($tmp/script 3) != '( foz=777 )' ]] 2>/dev/null && err_exit 'compound var arithmetic failed'
423 [[ $($tmp/script 4) != '( foz=777 )' ]] 2>/dev/null && err_exit 'compound var arithmetic failed'
424 [[ $($tmp/script 5) != '( fuz=777 )' ]] 2>/dev/null && err_exit 'compound var arithmetic failed'
425 [[ $($tmp/script 6) != '0' ]] 2>/dev/null && err_exit 'compound var arithmetic failed'
426 [[ $($tmp/script 7) != '0' ]] 2>/dev/null && err_exit 'compound var arithmetic failed'
H A Dlocale.sh151 LC_ALL=$locale $SHELL < ko.dat 2> /dev/null || err_exit "script with multibyte char straddling buffer boundary fails"
198 join -j1 1 -j2 2 -o 1.1 -t \$(cat delim) input1 input2 > out" > script
199 $SHELL -c 'unset LANG ${!LC_*}; $SHELL ./script' ||
200 err_exit "join test script failed -- exit code $?"
203 [[ $got == "$exp" ]] || err_exit "LC_ALL test script failed -- expected '$exp', got '$got'"
305 } > script$$.1
306 chmod +x script$$.1
307 x=$( LC_ALL=debug $SHELL ./script$$.1)
/ast/src/cmd/re/
H A Dsed2.c141 vv(Text *script, unsigned char *pc, Text *data) argument
143 script = script;
151 be(Text *script, unsigned char *pc, Text *data) argument
153 script = script;
155 return script->s + instr(pc)[1];
159 de(Text *script, unsigned char *pc, Text *data) argument
161 NoP(script);
168 De(Text *script, unsigne argument
182 Ee(Text *script, unsigned char *pc, Text *data) argument
192 Ge(Text *script, unsigned char *pc, Text *data) argument
203 ge(Text *script, unsigned char *pc, Text *data) argument
216 He(Text *script, unsigned char *pc, Text *data) argument
226 he(Text *script, unsigned char *pc, Text *data) argument
235 Ie(Text *script, unsigned char *pc, Text *data) argument
243 ie(Text *script, unsigned char *pc, Text *data) argument
253 Le(Text *script, unsigned char *pc, Text *data) argument
261 Ne(Text *script, unsigned char *pc, Text *data) argument
272 ne(Text *script, unsigned char *pc, Text *data) argument
284 Pe(Text *script, unsigned char *pc, Text *data) argument
300 pe(Text *script, unsigned char *pc, Text *data) argument
308 qe(Text *script, unsigned char *pc, Text *data) argument
317 te(Text *script, unsigned char *pc, Text *data) argument
328 ww(Text *script, unsigned char *pc, Text *data, word offset) argument
344 we(Text *script, unsigned char *pc, Text *data) argument
350 xe(Text *script, unsigned char *pc, Text *data) argument
363 ye(Text *script, unsigned char *pc, Text *data) argument
403 se(Text *script, unsigned char *pc, Text *data) argument
433 le(Text *script, unsigned char *pc, Text *data) argument
482 ae(Text *script, unsigned char *pc, Text *data) argument
493 ce(Text *script, unsigned char *pc, Text *data) argument
546 execute(Text *script, Text *data) argument
[all...]
H A Dsed1.c144 addr(Text *script, Text *t) argument
168 putword(script, n);
185 beginning of the script
187 on the first pass, every script ref to a label becomes the
189 it is a branch to the end of script
191 on the second pass (fixlabels), the script ref is replaced
245 Cc(Text *script, Text *t) /* colon */ argument
247 if(getlab(t, script->w - sizeof(word) - script->s) == -1)
252 bc(Text *script, Tex argument
260 fixlabels(Text *script) argument
286 rc(Text *script, Text *t) argument
301 wc(Text *script, Text *t) argument
324 Lc(Text *script, Text *t) argument
331 Rc(Text *script, Text *t) argument
347 fixbrack(Text *script) argument
366 Xc(Text *script, Text *t) argument
376 Ic(Text *script, Text *t) argument
383 Tc(Text *script, Text *t) argument
390 xx(Text *script, Text *t) argument
400 ac(Text *script, Text *t) argument
424 qc(Text *script, Text *t) argument
432 sc(Text *script, Text *t) argument
449 yc(Text *script, Text *t) argument
616 printscript(Text *script) argument
651 execute(Text *script, Text *y) argument
674 compile(Text *script, Text *t) argument
[all...]
H A Dsed0.c29 " makes editing changes according to a script of editing commands,"
30 " and writes the results to standard output. The script is obtained"
31 " from either the script operand string or a combination of the"
36 " the editing command script. \ascript\a may contain more than one"
37 " newline separated command.]:[script]"
39 " the editing command script.]:[script-file]"
101 error(1, "script segment ends with \\");
130 error(1, "newline appended to script segment");
235 simply prints the already collected script an
239 compile(Text *script, Text *t) argument
260 static Text script; local
[all...]
/ast/src/cmd/mam/
H A Dmamsh.sh20 : mam to sh script filter
30 [+NAME?mamsh - make abstract machine to shell script conversion filter]
32 instructions on the standard input to a \bsh\b(1) script
33 that updates all targets on the standard output. The script
/ast/src/cmd/sort/
H A DMakefile16 script :TEST: testsort.sh sort
/ast/src/lib/libtksh/tcl/
H A DtclPkg.c25 char *script; /* Script to invoke to provide this version member in struct:PkgAvail
114 * provided in the interpreter, this procedure invokes a Tcl script
125 * be found, or the script to provide the required version
130 * The script from some previous "package ifneeded" command may
150 char *script;
156 * run the "package unknown" script, one to run the "package ifneeded"
157 * script for a specific version, and a final pass to lookup the
158 * package loaded by the "package ifneeded" script.
169 * versions and invoke the script for the best available version.
193 * We found an ifneeded script fo
148 char *script; local
[all...]
H A DtclIOCmd.c28 char *script; /* Script to invoke. */ member in struct:AcceptCallback
1172 * NULL. This will prevent attempts to eval the accept script
1265 * Whatever the script does.
1283 char *script;
1297 script = acceptCallbackPtr->script;
1300 Tcl_Preserve((ClientData) script);
1305 result = Tcl_VarEval(interp, script, " ", Tcl_GetChannelName(chan),
1312 Tcl_Release((ClientData) script);
1332 * which the accept script i
[all...]
/ast/src/cmd/probe/
H A Dprobe.c54 " is generated by a \bsh\b(1) script (\aprobe script\a) specific to"
67 " exists in the same directory as the \bprobe\b script, is sourced"
75 " exists in the same directory as the \bprobe\b script, is sourced"
76 " (via the \b.\b \bsh\b(1) command) before the \bprobe\b script proper."
77 " \bprobe.ini\b may completely override the \bprobe\b script by"
110 " probe script trace (see \bsh\b(1) \b-x\b) to the standard error.]"
284 char* script; local
416 if (!(script = newof(0, char, n, 5)))
418 strcpy(script, pat
[all...]
/ast/src/lib/libtk/library/
H A Dfocus.tcl167 set script {
176 bind all <Enter> "$old; $script"
178 bind all <Enter> $script
/ast/src/lib/libtksh/src/
H A Deval.c275 * can be specified in the script explicitly select a parser.
299 Sfio_t *script; local
307 script = sfopen(NIL(Sfio_t *), fileName, "r");
308 if (!script)
314 script = sfstdin;
318 cmdBuffer = fileToString(script);
341 sfclose(script);
428 int Tcl_RecordAndEval(Tcl_Interp *interp, char *script, int flags) argument
437 result = Tcl_Eval(interp, script);
446 args[2] = script;
[all...]
/ast/src/lib/libast/comp/
H A Dconf.sh26 # this script generates these files from the table file in the first arg
206 script=
215 eval script='$'script_$1
219 "sh{") script="# $name" ;;
220 *) script= ;;
229 script=$script$nl$line
294 eval CONF_script_${key}='$'script
313 eval script=\"'$'CONF_script_$key\"
316 printf "%29s %35s %8s %2s %1d %5s %s$nl" "$name" "$key" "$standard" "$call" "$section" "$flags" "$define${values:+$sp=$values}${headers:+$sp$headers$nl}${script
[all...]
/ast/src/lib/libcoshell/
H A Dcolib.h50 struct Coinit_s /* initialization script state */ \
52 char* script; /* initialization script */ \
56 int sync; /* sync script */ \
123 extern char coident[]; /* coshell ident script */
124 extern char cobinit[]; /* bsh initialition script */
125 extern char cokinit[]; /* ksh initialition script */
/ast/src/cmd/ksh93/bltins/
H A Dmisc.c209 register char *script; local
231 script = *argv;
232 if(error_info.errors || !script)
235 errormsg(SH_DICT,ERROR_exit(1),e_toodeep,script);
239 np = nv_search(script,shp->fun_tree,0);
244 path_search(shp,script,NIL(Pathcomp_t**),0);
251 errormsg(SH_DICT,ERROR_exit(1),e_found,script);
258 if((fd=path_open(shp,script,path_get(shp,script))) < 0)
259 errormsg(SH_DICT,ERROR_system(1),e_open,script);
[all...]
/ast/src/cmd/tksh/
H A DtkMain.c85 * on the script being interpreted.
118 * use it as the name of a script file to process.
184 * Invoke the script specified on the command line, if any.
394 * Issue a prompt on standard output, or invoke a script
401 * A prompt gets output, and a Tcl script may be evaluated
441 "\n (script that generates prompt)");
473 char *bindscript, *script = NULL, *oldarg;
489 script = (char *) malloc(strlen(bindscript) + BINDPRELEN +1);
490 strcpy(script, (((Interp *) interp)->interpType == INTERP_TCL)?
492 strcpy(script
470 char *bindscript, *script = NULL, *oldarg; local
[all...]

Completed in 43 milliseconds

12