• Home
  • Raw
  • Download

Lines Matching refs:w

172 func (f *funcSubst) Eval(w evalWriter, ev *Evaluator) error {
188 w.Write(text)
189 w.Write(to)
191 w.Write(bytes.Replace(text, from, to, -1))
201 func (f *funcPatsubst) Eval(w evalWriter, ev *Evaluator) error {
227 w.writeWord(sword)
238 func (f *funcStrip) Eval(w evalWriter, ev *Evaluator) error {
250 w.writeWord(word)
260 func (f *funcFindstring) Eval(w evalWriter, ev *Evaluator) error {
274 w.Write(find)
284 func (f *funcFilter) Eval(w evalWriter, ev *Evaluator) error {
303 w.writeWord(text)
316 func (f *funcFilterOut) Eval(w evalWriter, ev *Evaluator) error {
339 w.writeWord(text)
350 func (f *funcSort) Eval(w evalWriter, ev *Evaluator) error {
374 w.writeWordString(tok)
384 func (f *funcWord) Eval(w evalWriter, ev *Evaluator) error {
410 w.writeWord(wb.words[index-1])
420 func (f *funcWordlist) Eval(w evalWriter, ev *Evaluator) error {
453 w.writeWord(word)
464 func (f *funcWords) Eval(w evalWriter, ev *Evaluator) error {
477 w.writeWordString(strconv.Itoa(n))
485 func (f *funcFirstword) Eval(w evalWriter, ev *Evaluator) error {
497 w.writeWord(wb.words[0])
507 func (f *funcLastword) Eval(w evalWriter, ev *Evaluator) error {
519 w.writeWord(wb.words[len(wb.words)-1])
531 func (f *funcJoin) Eval(w evalWriter, ev *Evaluator) error {
555 w.writeWord(word)
566 func (f *funcWildcard) Eval(w evalWriter, ev *Evaluator) error {
582 err = wildcard(w, pat)
596 func (f *funcDir) Eval(w evalWriter, ev *Evaluator) error {
610 w.writeWordString(name)
613 w.writeWordString(name + string(filepath.Separator))
623 func (f *funcNotdir) Eval(w evalWriter, ev *Evaluator) error {
637 w.writeWord([]byte{}) // separator
640 w.writeWordString(filepath.Base(name))
650 func (f *funcSuffix) Eval(w evalWriter, ev *Evaluator) error {
665 w.writeWordString(e)
676 func (f *funcBasename) Eval(w evalWriter, ev *Evaluator) error {
690 w.writeWordString(e)
700 func (f *funcAddsuffix) Eval(w evalWriter, ev *Evaluator) error {
721 w.writeWord(name)
732 func (f *funcAddprefix) Eval(w evalWriter, ev *Evaluator) error {
753 w.writeWord(name)
764 func (f *funcRealpath) Eval(w evalWriter, ev *Evaluator) error {
775 fmt.Fprintf(w, "$(realpath %s 2>/dev/null)", string(wb.Bytes()))
794 w.writeWordString(name)
804 func (f *funcAbspath) Eval(w evalWriter, ev *Evaluator) error {
822 w.writeWordString(name)
833 func (f *funcIf) Eval(w evalWriter, ev *Evaluator) error {
845 return f.args[2].Eval(w, ev)
849 return f.args[3].Eval(w, ev)
857 func (f *funcAnd) Eval(w evalWriter, ev *Evaluator) error {
876 w.Write(cond)
884 func (f *funcOr) Eval(w evalWriter, ev *Evaluator) error {
898 w.Write(cond)
929 func (f *funcShell) Eval(w evalWriter, ev *Evaluator) error {
942 io.WriteString(w, "$(")
943 w.Write(abuf.Bytes())
944 writeByte(w, ')')
957 bc.run(w)
981 w.Write(formatCommandOutput(out))
1019 func (f *funcCall) Eval(w evalWriter, ev *Evaluator) error {
1062 w = &ssvWriter{Writer: io.MultiWriter(w, &buf)}
1064 err = v.Eval(w, ev)
1081 func (f *funcValue) Eval(w evalWriter, ev *Evaluator) error {
1093 io.WriteString(w, v.String())
1101 func (f *funcEval) Eval(w evalWriter, ev *Evaluator) error {
1238 func (f *funcEvalAssign) Eval(w evalWriter, ev *Evaluator) error {
1311 func (f *funcOrigin) Eval(w evalWriter, ev *Evaluator) error {
1323 io.WriteString(w, v.Origin())
1331 func (f *funcFlavor) Eval(w evalWriter, ev *Evaluator) error {
1343 io.WriteString(w, v.Flavor())
1351 func (f *funcInfo) Eval(w evalWriter, ev *Evaluator) error {
1376 func (f *funcWarning) Eval(w evalWriter, ev *Evaluator) error {
1401 func (f *funcError) Eval(w evalWriter, ev *Evaluator) error {
1427 func (f *funcForeach) Eval(w evalWriter, ev *Evaluator) error {
1450 writeByte(w, ' ')
1452 err = text.Eval(w, ev)