Devarim / Deuteronomy 31:7 · Remez
וַיִּקְרָא מֹשֶׁה לִיהוֹשֻׁעַ וַיֹּאמֶר אֵלָיו לְעֵינֵי כָל־יִשְׂרָאֵל חֲזַק וֶאֱמָץ כִּי אַתָּה תָּבוֹא אֶת־הָעָם הַזֶּה אֶל־הָאָרֶץ אֲשֶׁר נִשְׁבַּע יְהוָה לַאֲבֹתָם לָתֵת לָהֶם וְאַתָּה תַּנְחִילֶנָּה אוֹתָם׃
And Moshe called Yehoshua and said to him before the eyes of all Israel: "Be strong and courageous, for you shall come with this people into the land which the Eternal swore to their fathers to give them, and you shall give it to them as an inheritance.
Remez רֶמֶז
A letter and a chant
In the Torah scroll "you shall come" and "you shall bring" stand close together, and above the words are the chant signs that show where to pause. Torah scholars read these details as clues to how Yehoshua (Joshua) should act in public and in private.
Minchat Shai: in our verse "come" is written with the letter vav (ו), in verse 31:23 "bring" with the letter yod (י), and this is one of seven such pairs in the Torah. Shem MiShmuel: Moshe (Moses) passed on only what he heard from the Eternal, so why two different words? The chant joins "before the eyes of all Israel" to "be strong": in public be firm, in private humble. Before the people, hear out the elders, but decide by the spirit of the Eternal.
How Minchat Shai and Shem MiShmuel explain it
Minchat Shai For you shall come
The first word has the sense of "coming" (תָּבוֹא), the second the sense of a command: "you shall bring" (תָּבִיא). And the sign: "the thorns and the briers" (Shoftim / Judges 8:7). The first letters of the word "thorns" (קוֹצֵי) are the sign: the word "reading" (קְרִיאָה) goes with vav (ו), the word "command" (צִוּוּי) with yod (י). And this is one of seven pairs that alternate: in the first word vav, in the second yod. Its sign is at the start of the portion Beha'alotcha.
Shem MiShmuel And Moshe called Yehoshua and said to him before the eyes of all Israel: "Be strong and courageous, for you shall come with this people."
And in Rashi: Moshe said to Yehoshua: the elders of the generation will be with you, everything according to their opinion and counsel. But the Holy One, blessed is He, said to Yehoshua: "for you shall bring the children of Israel", bring them against their will. And this needs understanding: can it be that Moshe (Moses) said even one word in the Torah except what he heard from the mouth of the Power?
Shem MiShmuel Before the eyes of all Israel
It seems there is a difficulty in the chant signs. The words "before the eyes of all Israel" are marked with zarka, and "be strong and courageous" with segol, and "be strong and courageous" runs on after the word "Israel". It would seem the word "Israel" needed a dividing sign (and see Rashi on Megillah 12a, the words "I complain to you"). So one must say the meaning is this: before the eyes of all Israel be strong and courageous, but between you and yourself be humble.
And since this verse speaks specifically of what he will do before the eyes of all Israel, it ends: "with the people", everything by their opinion and counsel. Let them know beforehand that you heard their opinion and counsel. Then they will rely on you even if you do not act by their counsel: all will know that the spirit of the Eternal upon you did not agree with their counsel. But if you do not hear their opinion at all, doubt may arise in their hearts that you acted on your own mind, and that had you heard their counsel you would have agreed with them. But the next verse, which does not speak of what is before the eyes of all Israel at all, but of what he will truly do, says: "for you shall bring", by the spirit of the Eternal upon you, and you will not listen to their counsel at all.
Takeaway
The chant signs (טְעָמִים) show how to sing a verse and where to pause. Zarka (זַרְקָא) and segol (סֶגּוֹל) are the names of two such signs.
Verse 31:7 has "you shall come" (תָּבוֹא), verse 31:23 "you shall bring" (תָּבִיא). In writing the difference is one letter: vav (ו) or yod (י).
Beha'alotcha is a portion of Bamidbar (Bamidbar / Numbers 8–12). Minchat Shai refers to his list at the start of that portion.
Shem MiShmuel resolves the clash of the two words in Rashi: both are said from the Eternal. One is about how to appear in public, the other about how to decide in fact.