Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37491393
en ru br
Репозитории ALT
S:0.5.15lorg2-alt86
5.1: 0.5.15lorg2-alt33.M50P.1
4.1: 0.5.15lorg2-alt20.M41.1
4.0: 0.5.15lorg2-alt18.M40.1
+updates:0.5.15lorg2-alt18
3.0: 0.5.15cnc6-alt16
www.altlinux.org/Changes

Группа :: Система/Настройка/Пакеты
Пакет: apt

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: apt-0.5.15lorg2-alt-apt-shell-quit_by_eof.patch
Скачать


https://bugzilla.altlinux.org/show_bug.cgi?id=18343
--- apt/cmdline/apt-shell.cc
+++ apt/cmdline/apt-shell.cc
@@ -4477,10 +4477,18 @@ int main(int argc,const char *argv[])
       }
       
       line = readline(_config->Find("APT::Shell::Prompt", "apt> ").c_str());
-      if (!line || !*line) {
-	 free(line);
-	 continue;
+      if (!line) {
+        c1out << endl;
+        // exit from shell by EOF
+         _config->Set("quit", "true");
+         continue;
+      }
+
+      if (!*line) {
+         free(line);
+         continue;
       }
+
       add_history(line);
 
       largc = 1; // CommandLine.Parse() ignores the first option.
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin