Path: csiph.com!news.neodome.net!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Hyunho Cho Newsgroups: gnu.bash.bug Subject: multi-line command history does not work when new terminal opened Date: Sun, 16 Aug 2020 15:39:39 +0900 Lines: 54 Approved: bug-bash@gnu.org Message-ID: References: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: usenet.stanford.edu 1597559995 15157 209.51.188.17 (16 Aug 2020 06:39:55 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=+uL+qO5Uawfg9+Y6V+5SeCg3MMefKmbJ5/dOfcEVtX8=; b=UMf8wYUw6mOurJXIwwx7rj+NDEfQoTzSKKMPlMtvN/b+F3dqAXAnUN0qLzZ6okxCVk C7tM9h79tzwRSm/ITJtbBkZW0gjMFgCNpULef6L5SLD97Cmb2DgTvymcCyk6Sej7sADA qCDm0KZXUWCgw8nOfr4ITH/qnn/bIoqgcBQsjLveV7ZIg32tAfZKeqDSaagTJdO6T0c7 kSGb2IiWCpDUZsJ1tJZsdFndfES9Y1vh8/lG36yVw8wFfedzW5hKjlL4K0GdhHGYbTtp UQxQvJtcLnbsPmsb1uw2UmAxGjZYhnfkvuSP0HISLCbDXK3ehD3dSEEAl6hTe4Yzt+YK 530g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+uL+qO5Uawfg9+Y6V+5SeCg3MMefKmbJ5/dOfcEVtX8=; b=WTnPptMHZp0Bxja1s4OhGpDYzBGYgJyUZ4lTg0D9Xvy6a3B22dD+FQe0MomwL55YzS WlFSlKJc/Yx2CVfXqG8pIXB6xt55YfQT62SUHU+ZUSyf8g90gQ/BHrLhAGUjspmCXuv9 jYcNrKruXNyDA3duPtp6C0NhN9Pw66JU2dacRz9UenIkqUf4MB9LQ5T6WW+4VIoBwkD/ s3vUk8UB3/Uc+kIHjt49TAA7TjtqaRvPp4goOawpUw9lGt0fVrGzjNg90h/DdXk0Fzd1 9Tsjuv9CfENw+atj/x6aLUpjCky+MCbsHiumOUDgw85n5wo4bIOTwJo+B/Sjf1tQLTo4 RD2A== X-Gm-Message-State: AOAM533VQGV/K2tDz3dQaSYnJ0EKkrMsk9/jM5of49l1GuqEjSj05hFK ekNbghz6tk8y/2Rs1ng1vw3zyLXVisIXDZzL5nxYmOANOLK7CQ== X-Google-Smtp-Source: ABdhPJxzOVq3hGb3Usg7g3aGuA1HvO1TLtHTAYnj0nJorM7CsavC42YckEOzE5Srosk8v0LjcaRTr3x8pIH7XcMMqGA= X-Received: by 2002:a67:3249:: with SMTP id y70mr5453379vsy.199.1597559990278; Sat, 15 Aug 2020 23:39:50 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::e2a; envelope-from=mug896@gmail.com; helo=mail-vs1-xe2a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: Xref: csiph.com gnu.bash.bug:16753 Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/bash-a6qmCk/bash-5.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wno-parentheses -Wno-format-security uname output: Linux EliteBook 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 5.0 Patch Level: 17 Release Status: release #################################################################### I have enabled the shell options for multi-line command history like this shopt -s lithist shopt -s cmdhist and it works well in current terminal bash$ history 8651 echo history test 1 8652 echo history test 2 8653 echo history test 3 8654 cat << EOF 111 222 # multi-line command history works well 333 EOF 8655 history ----------------------------------------------------------------------------------- if i opened new terminal then the multi-line commands all changed to single lines like this bash$ history 7819 echo history test 1 7820 echo history test 2 7821 echo history test 3 7822 cat << EOF 7823 111 # the multi-line commands changed to single lines 7824 222 7825 333 7826 EOF 7827 history