Репозитории 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 |
Группа :: Система/Настройка/Пакеты
Пакет: 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.