Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15971

Re: bash 5.0.11 – Output not redirected

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Eli Schwartz <eschwartz@archlinux.org>
Newsgroups gnu.bash.bug
Subject Re: bash 5.0.11 – Output not redirected
Date Wed, 26 Feb 2020 11:59:09 -0500
Lines 73
Approved bug-bash@gnu.org
Message-ID <mailman.1593.1582736370.2412.bug-bash@gnu.org> (permalink)
References <CAM_8-Ci8K6ZbYLE=sLicsVpeDod4RP6zhKs+QUKNVqRV8m65cQ@mail.gmail.com> <20200226154817.GD845@eeg.ccf.org> <17434a65-6f23-d323-f21c-8f6dc5e04553@archlinux.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="53A06LreOfgPAe0jfQVtCB9doUdh0XOkf"
X-Trace usenet.stanford.edu 1582736370 15698 209.51.188.17 (26 Feb 2020 16:59:30 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/simple; d=archlinux.org; s=orion; t=1582736353; bh=/UIZtOdUA9XlvdZjUax8JDONo8sdvH7t1ay3JJR9TNs=; h=Subject:To:References:From:Date:In-Reply-To; b=bT+N07Z8lSVFtflY0o4RoKLtfskaAn1RveWiPelJnZFUX0iIf7cwCo4l1b77+nk3R yVhzVORAzlM4gEb0nWcnrMPtZAlxqDhOTFzGo9rrF2MjDyOmhVkap2N7PCSVCcrO/e xHbuZC7fTmep59lTHXNIAf4pDzXDZHLm5TXmU4I0Oc0TsAnd24R8t70LnI6Q8IxMEs uXSFfCPMqqheOpam+h0FZdsy7fIY4pGheqgIBFduz2lG1jjRGE1iwVzsx+dK0xxnCQ 2QG/6tLsElUzR33qXa5R3gXCOHU6aQY9bokd0OmPZ9TQ6QcJ0OlF3GK7ewHv4jplGd xrJhFqPEWdP8RwEh9LeuUu8y1cZ4T0duQCSU8sIb04fh0VCyoXbI6mbA0EszBGkfs7 hgOOVezw44HXvDGW2NhiteiEtJGaviPu+ZHGuiTgAFfUDQu9R1m94HB17nkXhm8xrQ SrPQtCl9Vp5X/Wec0IkIWzbSmT+CHS+rmOfwpVVahBJViyxLvsvzcB2bGbcldQt9X6 Mnu4yCUAzLLZdWpniHz7H5oxohGBO5awB4STxex4aO36CRNixLgjernyuc6kODskM6 +spIfRPYJiJUXmuz5np4w2ellDjPtlUFoQHXJf6BEKHwz/MhD7ADqogB/Rmp9dFERO FixLul9NCPAmuwoytTO6soNM=
X-Clacks-Overhead GNU Terry Pratchett
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2
In-Reply-To <20200226154817.GD845@eeg.ccf.org>
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2a01:4f8:160:6087::1
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <17434a65-6f23-d323-f21c-8f6dc5e04553@archlinux.org>
X-Mailman-Original-References <CAM_8-Ci8K6ZbYLE=sLicsVpeDod4RP6zhKs+QUKNVqRV8m65cQ@mail.gmail.com> <20200226154817.GD845@eeg.ccf.org>
Xref csiph.com gnu.bash.bug:15971

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 2/26/20 10:48 AM, Greg Wooledge wrote:
> If you're trying to pre-populate the input buffer of a shell in a newly
> launched terminal emulator, you're about to go down some very deep
> rabbit holes.  I suggest you look at tmux or screen.  Those may have
> some of the features you're looking for, if my guess is on target.

A simpler solution if you (rhet.) just want to run a command
automatically in gnome-terminal and then wait for more commands, is,
instead of starting "bash" (or $SHELL) by default, specify that
gnome-terminal should run the command:

bash --rcfile <(cat ~/.bashrc; echo "some_commands")

That would run "some_commands" as part of the shell initialization,
though it wouldn't wait for confirmation or line editing and it wouldn't
print what you're running without also doing some explicit echo/printf
or set -x.

Kind of a confusing way to do things, but it could get the job done.

-- 
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: bash 5.0.11 – Output not redirected Eli Schwartz <eschwartz@archlinux.org> - 2020-02-26 11:59 -0500

csiph-web