View | Details | Raw Unified | Return to bug 18343
Collapse All | Expand All

(-)a/apt/cmdline/apt-shell.cc (-3 / +11 lines)
Lines 4477-4486 int main(int argc,const char *argv[]) Link Here
4477
      }
4477
      }
4478
      
4478
      
4479
      line = readline(_config->Find("APT::Shell::Prompt", "apt> ").c_str());
4479
      line = readline(_config->Find("APT::Shell::Prompt", "apt> ").c_str());
4480
      if (!line || !*line) {
4480
      if (!line) {
4481
	 free(line);
4481
        // exit from shell by Ctrl-D
4482
	 continue;
4482
         c1out << "quit" << endl;
4483
         _config->Set("quit", "true");
4484
         continue;
4485
      }
4486
4487
      if (!*line) {
4488
         free(line);
4489
         continue;
4483
      }
4490
      }
4491
4484
      add_history(line);
4492
      add_history(line);
4485
4493
4486
      largc = 1; // CommandLine.Parse() ignores the first option.
4494
      largc = 1; // CommandLine.Parse() ignores the first option.

Return to bug 18343