--- ../CVS/openssh_cvs/session.c	Tue Feb  6 15:36:07 2001
+++ session.c	Wed Feb  7 17:40:02 2001
@@ -1460,10 +1460,20 @@
 	 * Execute the command using the user's shell.  This uses the -c
 	 * option to execute the command.
 	 */
-	argv[0] = (char *) cp;
-	argv[1] = "-c";
-	argv[2] = (char *) command;
-	argv[3] = NULL;
+	i = 0;
+	argv[i] = (char *) cp;
+	if ( strcmp (argv[i], "bash") == 0 )
+	{
+	  /* Don't execute XXXbashrc in interactive session, 
+	   * they my contain commands, who print to
+	   * output and this output will sent to client !!!
+	   */
+	  argv[++i] = "--norc";
+	  debug ("bash ... --norc");
+	}
+	argv[++i] = "-c";
+	argv[++i] = (char *) command;
+	argv[++i] = NULL;
 	execve(shell, argv, env);
 	perror(shell);
 	exit(1);
