Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Eli Schwartz Newsgroups: gnu.bash.bug Subject: =?UTF-8?Q?Re=3a_bash_5=2e0=2e11_=e2=80=93_Output_not_redirected?= Date: Wed, 26 Feb 2020 11:59:09 -0500 Lines: 73 Approved: bug-bash@gnu.org Message-ID: References: <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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <17434a65-6f23-d323-f21c-8f6dc5e04553@archlinux.org> X-Mailman-Original-References: <20200226154817.GD845@eeg.ccf.org> Xref: csiph.com gnu.bash.bug:15971 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --53A06LreOfgPAe0jfQVtCB9doUdh0XOkf Content-Type: multipart/mixed; boundary="iSnd3avJjUP6HmP1DaBfmvuKvrLEValiT" --iSnd3avJjUP6HmP1DaBfmvuKvrLEValiT Content-Type: text/plain; charset=utf-8 Content-Language: en-US-large Content-Transfer-Encoding: quoted-printable 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. --=20 Eli Schwartz Arch Linux Bug Wrangler and Trusted User --iSnd3avJjUP6HmP1DaBfmvuKvrLEValiT-- --53A06LreOfgPAe0jfQVtCB9doUdh0XOkf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEvSewel70XCra9w4EhIGKaBmvSpsFAl5Wo90ACgkQhIGKaBmv Sps/cQ//bkKe56Hp0mDb2HbDYauplFwWQpJawa0jgRXv013w6AWgy05n2Ucot4TE jQAgqd9wGR7t9wTXPeiJ3uyz15w12imhVUQtwkIIN23fsthjPZ8xJ6913XHewBtq DiKWeaOa3ZO505ntViU1ZOF5RRWEPY7pcUnwdLvxXJqv/4PNzBXzimP7TUk+ILR0 yGDFku9bUIi4R47PZi3Rsk1QQaFjkpRP1LbpOoDCdybRrDGOdSz9gPKoPxltNpar u7wiFcP4F9xvoZnPIzfNWX9ATorVaWRlOINiNwjaJIguxsAZDCgBo7VORzBPUkne cJr2nqAUav9l/KqPaXcHbWKlA8l1+0/35y0G9R/PL+Fz1UMYJxjX0Ys7/BEP4ZmD uw7m7/Mn5rRjtifQjeqQIrhlaorzqMGP2nYPq0opyiVJb6KGxO2v7YQYDiJXIXkk Tldkb21z7R79oW4PnAXZjfJdiL9Hr6GCkX7si2yUa9Pi4bvHtO+vV9fKtsJESA6Q hwtltUTPwvL7Auegd7mIHd8JgMwOTw4n7eUhkphHXBGHWgoluvpI+L43fiF+cby0 4n4C0545n9vmJ9wQJcFABDQ/akTeRt63Q5VLL4iXnRLQPL9rKBfF52MlSg1jhODB terAkDdhLKjwjo2jfnMiztCr1gpteWDJXZ1tS2rvyaHssIdDZwyJAjMEAQEKAB0W IQRgQRMEwJ02YoNA7v/OsWfvtXIr1gUCXlaj3QAKCRDOsWfvtXIr1r8aEAC1pqsR ms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