Difference between revisions of "Purpose of the Spies in Yehoshua 2/2"

From AlHaTorah.org
Jump to navigation Jump to search
m
 
(13 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
<h1>Purpose of the Spies in Yehoshua 2</h1>
 
<h1>Purpose of the Spies in Yehoshua 2</h1>
 
<div><b><center><span class="highlighted-notice">This topic has not yet undergone editorial review</span></center></b></div>
 
<div><b><center><span class="highlighted-notice">This topic has not yet undergone editorial review</span></center></b></div>
 +
<div class="overview">
 +
<h2>Overview</h2>
 +
Were the spies sent to Yericho to gauge the morale of the Canaanites or to determine how they could most easily conquer the city?&#160; Ralbag prefers the first option, claiming that news of the inhabitant's fear instilled confidence in the Israelites as they embarked on the Battles of Conquest. Others disagree, claiming that despite the fact that the victory over Yericho was ultimately achieved through Divine intervention, human preparatory efforts and espionage were still required.</div>
  
 
<approaches>
 
<approaches>
Line 9: Line 12:
 
<category>Morale Boosting Mission
 
<category>Morale Boosting Mission
 
<p>The spies were sent to gauge the morale of the Canaanites, and thereby boost the confidence of the novice Israelite fighting force.</p>
 
<p>The spies were sent to gauge the morale of the Canaanites, and thereby boost the confidence of the novice Israelite fighting force.</p>
<mekorot><multilink><a href="RalbagYehoshua2-1" data-aht="source">Ralbag #2</a><a href="RalbagYehoshua2-1" data-aht="source">Yehoshua 2:1</a><a href="RalbagYehoshua2-14" data-aht="source">Yehoshua 2:14</a><a href="RalbagYehoshua2-17" data-aht="source">Yehoshua 2:17</a><a href="R. Levi b. Gershom (Ralbag, Gersonides)" data-aht="parshan">About R. Levi b. Gershom</a></multilink>,<fn>Ralbag raises two different readings of the verses.&#160; See below for his understanding that the spies mission was military in nature.</fn></mekorot>
+
<mekorot><multilink><a href="RalbagYehoshua2-1" data-aht="source">Ralbag #2</a><a href="RalbagYehoshua2-1" data-aht="source">Yehoshua 2:1</a><a href="RalbagYehoshua2-14" data-aht="source">Yehoshua 2:14</a><a href="RalbagYehoshua2-17" data-aht="source">Yehoshua 2:17</a><a href="R. Levi b. Gershom (Ralbag, Gersonides)" data-aht="parshan">About R. Levi b. Gershom</a></multilink>,<fn>Ralbag raises two different readings of the verses.&#160; See below for his understanding that the spies mission was military in nature.</fn>&#160;<multilink><a href="NetzivBemidbar13-2" data-aht="source">Netziv</a><a href="NetzivBemidbar13-2" data-aht="source">Bemidbar 13:2</a><a href="R. Naftali Tzvi Yehuda Berlin (Netziv)" data-aht="parshan">About R. Naftali Tzvi Yehuda Berlin</a></multilink></mekorot>
<point><b>"וַיִּשְׁלַח יְהוֹשֻׁעַ... מְרַגְּלִים חֶרֶשׁ"</b> – Ralbag explains that the word "חֶרֶשׁ" relates to thought,<fn>As evidence for this meaning, he points to&#160;<a href="Mishlei3-29" data-aht="source">Mishlei 3:29</a> and <a href="Mishlei6-18" data-aht="source">6:18</a>.</fn> rather than secrecy<fn>Since the mission was not mean to reveal classified information, there was less need for secrecy.</fn> and suggests that the phrase reveals the purpose of the mission: Yehoshua sent two men to evaluate the thoughts of the people.</point>
+
<point><b>"וַיִּשְׁלַח יְהוֹשֻׁעַ... מְרַגְּלִים חֶרֶשׁ"</b> – Ralbag explains that the word "חֶרֶשׁ" relates to thought,<fn>As evidence for this meaning, he points to&#160;<a href="Mishlei3-29" data-aht="source">Mishlei 3:29</a> and <a href="Mishlei6-18" data-aht="source">6:18</a>.</fn> rather than secrecy<fn>Since the mission was not meant to reveal classified information, there was less need for secrecy.</fn> and suggests that the phrase reveals the purpose of the mission: Yehoshua sent two men to evaluate the thoughts of the people.</point>
 
<point><b>Biblical parallels</b> – Ralbag compares the mission to Gidon's visit to the Midianite camp in <a href="Shofetim7-9-15" data-aht="source">Shofetim 7</a>, whose sole purpose was also to instill confidence and not to gather information for battle.</point>
 
<point><b>Biblical parallels</b> – Ralbag compares the mission to Gidon's visit to the Midianite camp in <a href="Shofetim7-9-15" data-aht="source">Shofetim 7</a>, whose sole purpose was also to instill confidence and not to gather information for battle.</point>
 
<point><b>The spies' report</b> – As proof that the mission was to appraise morale, Ralbag points to the fact that the spies' report focused exclusively on the fear of the Canaanites and did not include any military data.</point>
 
<point><b>The spies' report</b> – As proof that the mission was to appraise morale, Ralbag points to the fact that the spies' report focused exclusively on the fear of the Canaanites and did not include any military data.</point>
<point><b>Report to Yehoshua alone</b> – If the mission's purpose was to encourage the nation, it is surprising that the spies reported back to Yehoshua alone and not to the whole nation. Ralbag might respond that Yehoshua had learned from the debacle of Moshe's spies not to chance a negative report, and that despite the text's silence, after the secret debriefing the findings were made public.</point>
+
<point><b>Report to Yehoshua alone</b> – If the mission's purpose was to encourage the nation, it is surprising that the spies reported back to Yehoshua alone and not to the whole nation. These sources might respond that Yehoshua had learned from the debacle of Moshe's spies not to chance a negative report, and that despite the text's silence, after the secret debriefing the findings were made public.</point>
<point><b>Why visit Rachav, a prostitute?</b> The choice might have been a practical one as a brothel allowed visitors to maintain their anonymity.<fn>See Ibn Kaspi who speaks of the spies' desire to remain inconspicuous.</fn> &#160; Moreover, it had significant occupant turnover which would make Rachav a good source of information regarding the nation's feelings towards the Israelites.</point>
+
<point><b>Why visit Rachav, a prostitute?</b> The choice might have been a practical one as a brothel allowed visitors to maintain their anonymity.<fn>See&#160;<multilink><a href="#" data-aht="source">Ibn Kaspi</a></multilink> who speaks of the spies' desire to remain inconspicuous.</fn>&#160; Moreover, it had significant occupant turnover which would make Rachav a good source of information regarding the nation's feelings towards the Israelites.</point>
 
<point><b>Why sleep over?</b> It is not clear why the spies would think it worthwhile to risk their lives by spending the night in Yericho just to appraise the morale of the people.&#160; It is possible that Rachav did not open her home to visitors until after dark, but surely they could have gathered information from a different source earlier in the day when there was no chance of being trapped in the city!</point>
 
<point><b>Why sleep over?</b> It is not clear why the spies would think it worthwhile to risk their lives by spending the night in Yericho just to appraise the morale of the people.&#160; It is possible that Rachav did not open her home to visitors until after dark, but surely they could have gathered information from a different source earlier in the day when there was no chance of being trapped in the city!</point>
 
<point><b>Purpose of red cord</b> – Ralbag maintains that the cord was a response to Rachav's request for an "אוֹת אֱמֶת" (a true sign).&#160; It served as an indicator of Rachav's abode so that the Israelites would be able to spare her during the Israelite invasion.</point>
 
<point><b>Purpose of red cord</b> – Ralbag maintains that the cord was a response to Rachav's request for an "אוֹת אֱמֶת" (a true sign).&#160; It served as an indicator of Rachav's abode so that the Israelites would be able to spare her during the Israelite invasion.</point>
<point><b>How would the invading army see the cord?</b> Ralbag likely assumes that the spies were not yet aware that the city was to be conquered miraculously and thus had no reason to think that the house and cord might no longer be around when they invaded.<fn>In the end, apparently her house did remain standing, as Yehoshua tells his men, "בֹּאוּ בֵּית הָאִשָּׁה הַזּוֹנָה וְהוֹצִיאוּ מִשָּׁם אֶת הָאִשָּׁה וְאֶת כׇּל אֲשֶׁר לָהּ". <multilink><a href="RadakYehoshua6-5" data-aht="source">Radak</a><a href="RadakYehoshua6-5" data-aht="source">Yehoshua 6:5</a><a href="R. David Kimchi (Radak)" data-aht="parshan">About R. David Kimchi</a></multilink> suggests that only part of the wall collapsed, as that was all that was necessary for the nation to gain entry.&#160; Rachav's house was built into the section of the wall that remained standing.</fn> Nonetheless, it is still difficult to understand why the spies thought that such a cord would have been visible to soldiers inside the city, if it were hung out the exterior window in the city's walls.<fn>This might be what prompts the Vilna Gaon to suggest that Rachav in fact had two homes, one built into the wall, and one located only near the wall.&#160;Though the latter fell during the miraculous conquest, the outer home remained intact.&#160; According to this theory, Rachav hung the rope out of a window in the house near the wall, while the spies exited through the window of the home in the wall. This, however, directly contradicts Yehoshua 2:18 which states that the windows were one and the same.</fn></point>
+
<point><b>How would the invading army see the cord?</b> Ralbag likely assumes that the spies were not yet aware that the city was to be conquered miraculously and thus had no reason to think that the house and cord might no longer be around when they invaded.<fn>In the end, apparently her house did remain standing, as Yehoshua tells his men, "בֹּאוּ בֵּית הָאִשָּׁה הַזּוֹנָה וְהוֹצִיאוּ מִשָּׁם אֶת הָאִשָּׁה וְאֶת כׇּל אֲשֶׁר לָהּ". <multilink><a href="RadakYehoshua6-5" data-aht="source">Radak</a><a href="RadakYehoshua6-5" data-aht="source">Yehoshua 6:5</a><a href="R. David Kimchi (Radak)" data-aht="parshan">About R. David Kimchi</a></multilink> suggests that only part of the wall collapsed, as that was all that was necessary for the nation to gain entry.&#160; Rachav's house, however, was built into the section of the wall that remained standing.</fn> Nonetheless, it is still difficult to understand why the spies thought that such a cord would have been visible to soldiers inside the city, if it were hung out the exterior window in the city's walls.<fn>This might be what prompts the<multilink><a href="VilnaGaonGRAYehoshua2-15" data-aht="source"> Vilna Gaon</a><a href="VilnaGaonGRAYehoshua2-15" data-aht="source">Yehoshua 2:15</a></multilink> to suggest that Rachav in fact had two homes, one built into the wall, and one located only near the wall.&#160;Though the latter fell during the miraculous conquest, the outer home remained intact.&#160; According to this theory, Rachav hung the rope out of a window in the house near the wall, while the spies exited through the window of the home in the wall. This, however, directly contradicts Yehoshua 2:18 which states that the windows were one and the same.</fn></point>
 
<point><b>Conditions of secrecy</b> – Ralbag explains that the spies made Rachav swear not to reveal the pact to ensure that no other residents of Yericho sought refuge in Rachav's home, passing themselves off as relatives.<fn>Cf. <a href="RadakYehoshua2-14" data-aht="source">Radak</a> who suggests that others would try to save themselves by similarly hanging a red cord.</fn>&#160; Since Hashem had commanded to totally destroy the Canaanites, they did not want to be tricked into saving any non-family members.</point>
 
<point><b>Conditions of secrecy</b> – Ralbag explains that the spies made Rachav swear not to reveal the pact to ensure that no other residents of Yericho sought refuge in Rachav's home, passing themselves off as relatives.<fn>Cf. <a href="RadakYehoshua2-14" data-aht="source">Radak</a> who suggests that others would try to save themselves by similarly hanging a red cord.</fn>&#160; Since Hashem had commanded to totally destroy the Canaanites, they did not want to be tricked into saving any non-family members.</point>
 
<point><b>Success of mission</b> – The spies returned successfully, equipped with the information they were meant to gather.</point>
 
<point><b>Success of mission</b> – The spies returned successfully, equipped with the information they were meant to gather.</point>
<point><b>Relationship between Chapters 2 and 6</b> – According to this approach, since the spies' mission was not related to a strategy of invasion, it is not incompatible with Hashem's Divine conquest.&#160; Appraising the Canaanite morale was important regardless of how Yericho itself was to be destroyed.</point>
+
<point><b>Relationship between Chapters 2 and 6</b> – According to this approach, the chapters are compatible.&#160; Since the spies' mission was unrelated to strategies of invasion, it was not obviated by Hashem's Divine conquest. Appraising the Canaanite morale was important regardless of how Yericho itself was to be destroyed.</point>
 
</category>
 
</category>
 
<category>Military Mission
 
<category>Military Mission
 
<p>The spies' mission was military in nature, meant to determine how to best conquer Yericho.</p>
 
<p>The spies' mission was military in nature, meant to determine how to best conquer Yericho.</p>
<mekorot><multilink><a href="JosephusAntiquitiesoftheJews5-1-1" data-aht="source">Josephus</a><a href="JosephusAntiquitiesoftheJews5-1-1" data-aht="source">Josephus Antiquities of the Jews 5:1:1</a></multilink>, <multilink><a href="RalbagYehoshua2-1" data-aht="source">Ralbag</a><a href="RalbagYehoshua2-1" data-aht="source">Yehoshua 2:1</a></multilink> #1<fn>See above that Ralbag also suggests that the mission's purpose was to appraise morale; that position seems to be his preferred reading of the story.</fn></mekorot>
+
<mekorot><multilink><a href="JosephusAntiquitiesoftheJews5-1-1" data-aht="source">Josephus</a><a href="JosephusAntiquitiesoftheJews5-1-1" data-aht="source">Josephus Antiquities of the Jews 5:1:1</a></multilink>, <multilink><a href="RalbagYehoshua2-1" data-aht="source">Ralbag</a><a href="RalbagYehoshua2-1" data-aht="source">Yehoshua 2:1</a></multilink> #1<fn>See above that Ralbag also suggests that the mission's purpose was to appraise morale; that position seems to be his preferred reading of the story.&#160; For a more recent development of the "Military Mission" approach, see H. Novetsky and A. Mermelstein,&#160;<a href="6Yehoshua/02/The Scarlet Cord and the Conquest of Jericho.pdf6Yehoshua/02/The Scarlet Cord and the Conquest of Jericho.pdf" data-aht="file">"The Scarlet Cord and the Conquest of Jericho : The Handicap of the 'Omniscient Reader,'"</a> Nachalah 1 (1999): 65-74.</fn></mekorot>
 
<point><b>"וַיִּשְׁלַח יְהוֹשֻׁעַ... מְרַגְּלִים חֶרֶשׁ"</b> – According to this approach, "חֶרֶש" means "in secret". Yehoshua sent the spies covertly, as would be expected in a military reconnaissance mission.</point>
 
<point><b>"וַיִּשְׁלַח יְהוֹשֻׁעַ... מְרַגְּלִים חֶרֶשׁ"</b> – According to this approach, "חֶרֶש" means "in secret". Yehoshua sent the spies covertly, as would be expected in a military reconnaissance mission.</point>
 
<point><b>Why was military intelligence necessary?</b> If Hashem had promised Yehoshua victory and was planning on conquering Yericho via a miracle, gathering strategic information about the city would seem to be unnecessary.&#160; This position would respond that, though the reader knows the end of the story, Yehoshua was not yet privy to that information, as Hashem first reveals His plans to tumble the walls in chapter 6.&#160; Thus, knowing the challenge posed by Yericho's walls,<fn>The walls of Yericho presented a formidable obstacle to an invading army. Use of battering rams or ladders to enter the city might mean a high cost in life and blood. On the other hand, the Israelites would want to avoid a protracted siege, which might take years and deplete both resources and morale. Even if the Israelites ultimately prevailed the price might have been defeat in the larger war against Canaan.&#160; Thus, it is logical that Yehoshua looked for weak points in the wall, or alternate means to enter.</fn> Yehoshua did not rely on miracles but rather investigated how he might most successfully invade the city.<fn>Yehoshua is not unique in sending spies before a military invasion. Moshe does the same in Bemidbar 21:32 and Yehoshua repeats the action before fighting the Ai.&#160; [The spies' report regarding the size of the necessary fighting force clearly shows that their mission was military in nature.]</fn></point>
 
<point><b>Why was military intelligence necessary?</b> If Hashem had promised Yehoshua victory and was planning on conquering Yericho via a miracle, gathering strategic information about the city would seem to be unnecessary.&#160; This position would respond that, though the reader knows the end of the story, Yehoshua was not yet privy to that information, as Hashem first reveals His plans to tumble the walls in chapter 6.&#160; Thus, knowing the challenge posed by Yericho's walls,<fn>The walls of Yericho presented a formidable obstacle to an invading army. Use of battering rams or ladders to enter the city might mean a high cost in life and blood. On the other hand, the Israelites would want to avoid a protracted siege, which might take years and deplete both resources and morale. Even if the Israelites ultimately prevailed the price might have been defeat in the larger war against Canaan.&#160; Thus, it is logical that Yehoshua looked for weak points in the wall, or alternate means to enter.</fn> Yehoshua did not rely on miracles but rather investigated how he might most successfully invade the city.<fn>Yehoshua is not unique in sending spies before a military invasion. Moshe does the same in Bemidbar 21:32 and Yehoshua repeats the action before fighting the Ai.&#160; [The spies' report regarding the size of the necessary fighting force clearly shows that their mission was military in nature.]</fn></point>
Line 35: Line 38:
 
<point><b>Why visit Rachav, a prostitute?</b><ul>
 
<point><b>Why visit Rachav, a prostitute?</b><ul>
 
<li><b>Pragmatic</b> – These sources could suggest, as above, that the men hoped that staying at a brothel would allow them to remain inconspicuous and undetected.&#160;</li>
 
<li><b>Pragmatic</b> – These sources could suggest, as above, that the men hoped that staying at a brothel would allow them to remain inconspicuous and undetected.&#160;</li>
<li><b>Strategic</b> – Alternatively, the choice had less to do with Rachav's profession and more with the strategic location of her home.&#160; Her house was built within the actual walls of the city, with a window to the outside.&#160; As such, Rachav’s home afforded a perfect place for an Israelite commando force to penetrate the walls of Yericho. The spies' stay by Rachav was not serendipitous, but part of a calculated plan to find an entry point into the city.</li>
+
<li><b>Strategic</b> – Alternatively, the choice had less to do with Rachav's profession and more with the strategic location of her home.&#160; Her house was built within the actual walls of the city, with a window to the outside.&#160; As such, Rachav’s home afforded a perfect place for an Israelite commando force to penetrate the walls of Yericho. The spies' stay by Rachav was not serendipitous, but part of a calculated plan to find an entry point into the city.<fn>For elaboration, see H. Novetsky and A. Mermelstein,&#160;<a href="6Yehoshua/02/The Scarlet Cord and the Conquest of Jericho.pdf6Yehoshua/02/The Scarlet Cord and the Conquest of Jericho.pdf" data-aht="file">"The Scarlet Cord and the Conquest of Jericho : The Handicap of the 'Omniscient Reader,'"</a> Nachalah 1 (1999): 65-74.</fn></li>
 
</ul></point>
 
</ul></point>
 
<point><b>Why sleep over?</b> If the spies wanted to obtain Rachav’s assistance in invading the city, and convince her to agree to be a fifth column, it was logical to wait for the privacy of the dead of the night to seal the deal.<fn>The cover of night provided both privacy to converse and the ability to more easily dispose of Rachav should she resist their solicitations.</fn></point>
 
<point><b>Why sleep over?</b> If the spies wanted to obtain Rachav’s assistance in invading the city, and convince her to agree to be a fifth column, it was logical to wait for the privacy of the dead of the night to seal the deal.<fn>The cover of night provided both privacy to converse and the ability to more easily dispose of Rachav should she resist their solicitations.</fn></point>
Line 42: Line 45:
 
<point><b>Biblical parallels</b> – A parallel case of asking an insider for help in gaining access to a city is found in <a href="Shofetim1-23-25" data-aht="source">Shofetim 1:23-25</a>. There the tribes of Yosef ask a resident to show them the entry-point of Beit El, and then save him and his family for their assistance.<fn>The same language is employed in both stories.&#160; The spies promise Rachav, "וְעָשִׂינוּ עִמָּךְ חֶסֶד וֶאֱמֶת" and the men of the tribe of Yosef promise their ally, "וְעָשִׂינוּ עִמְּךָ חָסֶד"</fn></point>
 
<point><b>Biblical parallels</b> – A parallel case of asking an insider for help in gaining access to a city is found in <a href="Shofetim1-23-25" data-aht="source">Shofetim 1:23-25</a>. There the tribes of Yosef ask a resident to show them the entry-point of Beit El, and then save him and his family for their assistance.<fn>The same language is employed in both stories.&#160; The spies promise Rachav, "וְעָשִׂינוּ עִמָּךְ חֶסֶד וֶאֱמֶת" and the men of the tribe of Yosef promise their ally, "וְעָשִׂינוּ עִמְּךָ חָסֶד"</fn></point>
 
<point><b>The spies' report</b> – The fact that the spies' report focuses on the fear of the Canaanites rather than military findings is difficult for this approach.&#160; These sources might respond that when the text states that the spies told Yehoshua "all that happened to them," this refers to their encounter with Rachav and plan of entry.<fn>As is often the case, the text chooses a summary formulation rather than repeating details already known to the reader.</fn></point>
 
<point><b>The spies' report</b> – The fact that the spies' report focuses on the fear of the Canaanites rather than military findings is difficult for this approach.&#160; These sources might respond that when the text states that the spies told Yehoshua "all that happened to them," this refers to their encounter with Rachav and plan of entry.<fn>As is often the case, the text chooses a summary formulation rather than repeating details already known to the reader.</fn></point>
<point><b>Report to Yehsohua alone</b> – The choice to report to Yehoshua matches the clandestine nature of the entire mission.</point>
+
<point><b>Report to Yehoshua alone</b> – The choice to report to Yehoshua alone matches the clandestine nature of the entire mission.</point>
<point><b>Relationship between Chapters 2 and 6</b> – According to this approach, the discrepancies between Chapters 2 and 6 stem from the distinct stages of a gradually evolving plan for the capture of Yericho:<br/>
+
<point><b>Relationship between Chapters 2 and 6</b> – According to this approach, the discrepancies between Chapters 2 and 6 stem from their being distinct stages of a gradually evolving plan for the capture of Yericho:<br/>
 
<ul>
 
<ul>
<li>Those who maintain the spies actually failed in their mission might suggest that the foiling of the spies’ plans is what compelled the Divine intervention and miraculous victory of Chapter 6. </li>
+
<li>Those who maintain the spies actually failed in their mission might suggest that the foiling of the spies’ plans is what compelled the Divine intervention and miraculous victory of Chapter 6.</li>
<li>Alternatively, Hashem was always planning a miraculous conquest, but intentionally kept His intentions a secret because it was necessary that there be both human efforts and Divine intervention in the conquest.&#160; After 40 years of providence and miracles, Hashem wanted to wean the nation away from the supernatural and teach them to fend for themselves. However, He simultaneously wished to instill a fear of God in the Canaanites and knowledge of His care to the Israelites, both of which required a display of miraculous power.&#160; This dual goal meant that the events of both Chapters 2 and 6 necessary.</li>
+
<li>Alternatively, Hashem was always planning a miraculous conquest, but purposefully kept His intentions a secret because it was necessary that there be both human efforts and Divine intervention in the conquest.&#160; After forty years of providence and miracles, Hashem wanted to wean the nation away from the supernatural and teach them to fend for themselves. However, He simultaneously wished to instill a fear of God in the Canaanites and knowledge of His care to the Israelites, both of which required a display of miraculous power.&#160; This dual goal meant that the events of both Chapters 2 and 6 were necessary.</li>
 
</ul></point>
 
</ul></point>
 
</category>
 
</category>

Latest revision as of 10:09, 17 August 2016

Purpose of the Spies in Yehoshua 2

Exegetical Approaches

This topic has not yet undergone editorial review

Overview

Were the spies sent to Yericho to gauge the morale of the Canaanites or to determine how they could most easily conquer the city?  Ralbag prefers the first option, claiming that news of the inhabitant's fear instilled confidence in the Israelites as they embarked on the Battles of Conquest. Others disagree, claiming that despite the fact that the victory over Yericho was ultimately achieved through Divine intervention, human preparatory efforts and espionage were still required.

Morale Boosting Mission

The spies were sent to gauge the morale of the Canaanites, and thereby boost the confidence of the novice Israelite fighting force.

"וַיִּשְׁלַח יְהוֹשֻׁעַ... מְרַגְּלִים חֶרֶשׁ" – Ralbag explains that the word "חֶרֶשׁ" relates to thought,2 rather than secrecy3 and suggests that the phrase reveals the purpose of the mission: Yehoshua sent two men to evaluate the thoughts of the people.
Biblical parallels – Ralbag compares the mission to Gidon's visit to the Midianite camp in Shofetim 7, whose sole purpose was also to instill confidence and not to gather information for battle.
The spies' report – As proof that the mission was to appraise morale, Ralbag points to the fact that the spies' report focused exclusively on the fear of the Canaanites and did not include any military data.
Report to Yehoshua alone – If the mission's purpose was to encourage the nation, it is surprising that the spies reported back to Yehoshua alone and not to the whole nation. These sources might respond that Yehoshua had learned from the debacle of Moshe's spies not to chance a negative report, and that despite the text's silence, after the secret debriefing the findings were made public.
Why visit Rachav, a prostitute? The choice might have been a practical one as a brothel allowed visitors to maintain their anonymity.4  Moreover, it had significant occupant turnover which would make Rachav a good source of information regarding the nation's feelings towards the Israelites.
Why sleep over? It is not clear why the spies would think it worthwhile to risk their lives by spending the night in Yericho just to appraise the morale of the people.  It is possible that Rachav did not open her home to visitors until after dark, but surely they could have gathered information from a different source earlier in the day when there was no chance of being trapped in the city!
Purpose of red cord – Ralbag maintains that the cord was a response to Rachav's request for an "אוֹת אֱמֶת" (a true sign).  It served as an indicator of Rachav's abode so that the Israelites would be able to spare her during the Israelite invasion.
How would the invading army see the cord? Ralbag likely assumes that the spies were not yet aware that the city was to be conquered miraculously and thus had no reason to think that the house and cord might no longer be around when they invaded.5 Nonetheless, it is still difficult to understand why the spies thought that such a cord would have been visible to soldiers inside the city, if it were hung out the exterior window in the city's walls.6
Conditions of secrecy – Ralbag explains that the spies made Rachav swear not to reveal the pact to ensure that no other residents of Yericho sought refuge in Rachav's home, passing themselves off as relatives.7  Since Hashem had commanded to totally destroy the Canaanites, they did not want to be tricked into saving any non-family members.
Success of mission – The spies returned successfully, equipped with the information they were meant to gather.
Relationship between Chapters 2 and 6 – According to this approach, the chapters are compatible.  Since the spies' mission was unrelated to strategies of invasion, it was not obviated by Hashem's Divine conquest. Appraising the Canaanite morale was important regardless of how Yericho itself was to be destroyed.

Military Mission

The spies' mission was military in nature, meant to determine how to best conquer Yericho.

"וַיִּשְׁלַח יְהוֹשֻׁעַ... מְרַגְּלִים חֶרֶשׁ" – According to this approach, "חֶרֶש" means "in secret". Yehoshua sent the spies covertly, as would be expected in a military reconnaissance mission.
Why was military intelligence necessary? If Hashem had promised Yehoshua victory and was planning on conquering Yericho via a miracle, gathering strategic information about the city would seem to be unnecessary.  This position would respond that, though the reader knows the end of the story, Yehoshua was not yet privy to that information, as Hashem first reveals His plans to tumble the walls in chapter 6.  Thus, knowing the challenge posed by Yericho's walls,9 Yehoshua did not rely on miracles but rather investigated how he might most successfully invade the city.10
No mention of military espionage – The chapter never describes the spies checking the city's fortifications or amassing any other military information. This position could explain the absence in several ways:
  • Failed mission – The spies actually failed in their mission.  Due to the king's suspicions, they were forced to leave the city before they had collected the necessary data.
  • Assumed success –Though the facts are not recorded, the spies did in fact investigate the city.11  It is common in Tanakh for the text to omit certain details and have the reader simply assume them.12  In this particular case, it is possible that Tanakh did not deem the particular findings important since Hashem's miraculous destruction of the city made them superfluous.
  • Recorded success – Alternatively, the spies' encounter with Rachav was central to their mission and this is why the text records it at length. See below for elaboration on this possibility.
Why visit Rachav, a prostitute?
  • Pragmatic – These sources could suggest, as above, that the men hoped that staying at a brothel would allow them to remain inconspicuous and undetected. 
  • Strategic – Alternatively, the choice had less to do with Rachav's profession and more with the strategic location of her home.  Her house was built within the actual walls of the city, with a window to the outside.  As such, Rachav’s home afforded a perfect place for an Israelite commando force to penetrate the walls of Yericho. The spies' stay by Rachav was not serendipitous, but part of a calculated plan to find an entry point into the city.13
Why sleep over? If the spies wanted to obtain Rachav’s assistance in invading the city, and convince her to agree to be a fifth column, it was logical to wait for the privacy of the dead of the night to seal the deal.14
Purpose of red cord – The rope was intended to designate Rachav’s house and the spot where the soldiers would scale the wall and enter through her widow.15  It therefore needed to be placed outside the city so that the Israelites entering from outside could locate it.16
Conditions of secrecy – The spies' insistence on not revealing the pact is obvious.  Had Rachav decided to act as a double agent and reveal their plan to the king, the Israelites would fail to enter the city and incur heavy losses in the attempt.
Biblical parallels – A parallel case of asking an insider for help in gaining access to a city is found in Shofetim 1:23-25. There the tribes of Yosef ask a resident to show them the entry-point of Beit El, and then save him and his family for their assistance.17
The spies' report – The fact that the spies' report focuses on the fear of the Canaanites rather than military findings is difficult for this approach.  These sources might respond that when the text states that the spies told Yehoshua "all that happened to them," this refers to their encounter with Rachav and plan of entry.18
Report to Yehoshua alone – The choice to report to Yehoshua alone matches the clandestine nature of the entire mission.
Relationship between Chapters 2 and 6 – According to this approach, the discrepancies between Chapters 2 and 6 stem from their being distinct stages of a gradually evolving plan for the capture of Yericho:
  • Those who maintain the spies actually failed in their mission might suggest that the foiling of the spies’ plans is what compelled the Divine intervention and miraculous victory of Chapter 6.
  • Alternatively, Hashem was always planning a miraculous conquest, but purposefully kept His intentions a secret because it was necessary that there be both human efforts and Divine intervention in the conquest.  After forty years of providence and miracles, Hashem wanted to wean the nation away from the supernatural and teach them to fend for themselves. However, He simultaneously wished to instill a fear of God in the Canaanites and knowledge of His care to the Israelites, both of which required a display of miraculous power.  This dual goal meant that the events of both Chapters 2 and 6 were necessary.