From: Tom Hale <tom@hale.ee>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>, git <git@vger.kernel.org>
Subject: Re: [PATCH] __git_ps1: Don't kill shell if user types `set -e`
Date: Thu, 4 May 2017 16:35:31 +0700 [thread overview]
Message-ID: <60ea6f0e-aa27-9a2c-54fd-9c14db9f028c@hale.ee> (raw)
In-Reply-To: <CACBZZX6XdwND2-7cY0zp8+K_uh60tn-i_r9V7HAe2X-a-RJeQA@mail.gmail.com>
On 04/05/17 16:16, Ævar Arnfjörð Bjarmason wrote:
> What's the real use-case here? If you do "set -e" in your shell you
> also get e.g.:
>
> $ ls -l blah
> ls: cannot access blah: No such file or directory
> === Command terminated with exit status 2 (Thu May 4 11:16:03 2017) ===
>
> I.e. any little failure will terminate your shell, are you actually
> running a shell like this? For what purpose?
If I want to copy and paste a list of commands and have the execution
stop at a failure, I type "bash" then "set -e", then paste the commands.
It saves me creating a script file and then removing it later.
--
Tom Hale
prev parent reply other threads:[~2017-05-04 9:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-16 8:28 [PATCH] __git_ps1: Don't kill shell if user types `set -e` Tom "Ravi" Hale
2017-04-17 4:24 ` Junio C Hamano
2017-05-04 8:26 ` Tom Hale
2017-05-04 9:16 ` Ævar Arnfjörð Bjarmason
2017-05-04 9:35 ` Tom Hale [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=60ea6f0e-aa27-9a2c-54fd-9c14db9f028c@hale.ee \
--to=tom@hale.ee \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).