• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/tcsh/

Lines Matching refs:word

134  * If we find a set command, then we break a=b to a= and word becomes
160 size_t wp, word, wordp, cmd_start, oword = 0, ocmd_start = 0;
173 word = cmd_start = 0;
186 oword = word;
188 word = cmd_start = qline.len + 1;
193 word = oword;
215 word = qline.len, word_start = cp + 1;
224 * first word of command -> TW_COMMAND
228 looking = starting_a_command(qline.s + word - 1, qline.s) ?
231 wordp = word;
244 xprintf("word:%S:\n", qline.s + word);
245 xprintf("word:");
246 for (p = qline.s + word; *p; p++)
331 insert_meta(word_start, str_end, qline.s + word, !qu) < 0)
372 if (insert_meta(word_start, str_end, qline.s + word, !qu) < 0)
399 DeleteBack(str_end - word_start);/* get rid of old word */
418 bptr = dollar(qline.s + word);
582 * change the word before the cursor.
583 * cp must point to the start of the unquoted word.
585 * word is the text that has to be substituted.
591 insert_meta(const Char *cp, const Char *cpend, const Char *word,
603 for (wptr = word;;) {
814 * look for the characters previous to this word if we find a command
816 * word then we are not a command
1045 if (name_length == 0) {/* zero-length word can't be misspelled */
1236 tw_suffix(int looking, struct Strbuf *word, const Char *exp_dir, Char *exp_name)
1261 if ((dol = Strrchr(word->s, '$')) != 0 &&
1297 * Repair a word after a spalling or a recognizwe
1300 tw_fixword(int looking, struct Strbuf *word, Char *dir, Char *exp_name)
1306 word->len = 0;
1307 Strbuf_append1(word, '~');
1311 if ((ptr = Strrchr(word->s, '$')) != NULL) {
1313 word->len = ptr + 1 - word->s; /* Delete after the dollar */
1315 word->len = 0;
1321 word->len = 0;
1322 Strbuf_append(word, dir); /* put back dir part */
1326 word->len = 0;
1331 Strbuf_append(word, exp_name); /* add extended name */
1332 Strbuf_terminate(word);
1501 * Perform a RECOGNIZE, LIST or SPELL command on string "word".
1510 t_search(struct Strbuf *word, COMMAND command, int looking, int list_max,
1532 extract_dir_and_name(word->s, &dir, &name);
1542 if ((*word->s == '~') && (Strchr(word->s, '/') == NULL)) {
1581 if (Strchr(word->s, '/') || (looking & TW_PATH)) {
1588 if (looking == TW_COMMAND && word->len == 0) {
1672 if (word->len != 0 && word->s[word->len - 1] != '/') {
1673 Strbuf_append1(word, '/');
1674 Strbuf_terminate(word);
1727 target = name = Strsave(word->s); /* so it can match things */
1737 user_name = word->s + 1;
1742 user_name = word->s;
1762 target = name = Strsave(word->s); /* so it can match things */
1788 tw_fixword(looking, word, dir.s, exp_name.s);
1793 Strbuf_append1(word,
1794 tw_suffix(looking, word, exp_dir.s, exp_name.s));
1801 Strbuf_append1(word, suf);
1804 Strbuf_terminate(word);
1815 tw_fixword(looking, word, dir.s, exp_name.s);
2153 * word of $listflags shell variable contains 'x'.