• Home
  • Raw
  • Download

Lines Matching refs:p

352 		test, p := o.apply(w, path, ent)
353 if p {
411 if p, ok := seen[ent.id]; ok {
413 …rf("find: File system loop detected; `%s' is part of the same file system loop as `%s'.", lpath, p)
508 var p bool
510 test, p = op.apply(w, path, ent)
511 if p {
539 func (p *findCommandParser) parse() error {
540 p.fc.depth = 1<<31 - 1 // max int32
544 tok, err := p.token()
556 if p.fc.chdir != "" {
559 p.fc.chdir, err = p.token()
563 err = p.expect(";", "&&")
568 err = p.expect("[")
575 err = p.parseTest()
579 err = p.expectSeq("]", ";", "then")
588 err = p.parseTest()
592 err = p.expect("&&")
597 err = p.parseFind()
602 err = p.expect("fi")
607 tok, err = p.token()
617 func (p *findCommandParser) parseTest() error {
618 if p.fc.testdir != "" {
621 err := p.expect("-d")
625 p.fc.testdir, err = p.token()
629 func (p *findCommandParser) parseFind() error {
631 tok, err := p.token()
634 if len(p.fc.ops) == 0 || p.fc.ops[len(p.fc.ops)-1] != print {
635 p.fc.ops = append(p.fc.ops, print)
643 p.unget(tok)
644 op, err := p.parseFindCond()
649 p.fc.ops = append(p.fc.ops, op)
653 p.fc.finddirs = append(p.fc.finddirs, tok)
657 func (p *findCommandParser) parseFindCond() (findOp, error) {
658 return p.parseExpr()
661 func (p *findCommandParser) parseExpr() (findOp, error) {
662 op, err := p.parseTerm()
670 tok, err := p.token()
678 p.unget(tok)
681 op2, err := p.parseTerm()
689 func (p *findCommandParser) parseTerm() (findOp, error) {
690 op, err := p.parseFact()
700 tok, err := p.token()
711 p.unget(tok)
713 op, err = p.parseFact()
727 func (p *findCommandParser) parseFact() (findOp, error) {
728 tok, err := p.token()
734 p.fc.followSymlinks = true
741 tok, err = p.token()
752 p.fc.depth = int(i)
755 op, err := p.parseFact()
761 op, err := p.parseExpr()
765 err = p.expect("\\)")
771 tok, err = p.token()
777 tok, err = p.token()
794 return findOpRegular{p.fc.followSymlinks}, nil
800 return findOpType{m, p.fc.followSymlinks}, nil
802 p.unget(tok)
808 p.unget(tok)
873 if p, ok := seen[subdir.id]; ok {
875 glog.Errorf("findleaves: loop detected %q was %q", lpath, p)
885 for _, p := range fc.prunes {
886 if p == name {
904 func (p *findleavesCommandParser) parse() error {
906 p.fc.mindepth = -1
907 tok, err := p.token()
915 tok, err := p.token()
928 p.fc.prunes = append(p.fc.prunes, prune)
935 p.fc.mindepth = int(i)
943 p.fc.dirs, p.fc.name = args[:len(args)-1], args[len(args)-1]