Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16392
| Path | csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | worley@alum.mit.edu (Dale R. Worley) |
| Newsgroups | gnu.bash.bug |
| Subject | Re: hash -l with empty hash table prints to stdout |
| Date | Tue, 16 Jun 2020 22:13:33 -0400 |
| Lines | 14 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.2031.1592360021.2541.bug-bash@gnu.org> (permalink) |
| References | <bd77214b-2690-f5de-a814-108e5be8b6f1@case.edu> <87o8pi4eya.fsf@hobgoblin.ariadne.com> |
| NNTP-Posting-Host | lists.gnu.org |
| X-Trace | usenet.stanford.edu 1592360022 14818 209.51.188.17 (17 Jun 2020 02:13:42 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| Cc | beluro@web.de, bug-bash@gnu.org, chet.ramey@case.edu |
| To | chet.ramey@case.edu |
| Envelope-to | bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcastmailservice.net; s=20180828_2048; t=1592360015; bh=0hdj+0acw8KyZOf22BsLT9g50DXrTkLeNDiOKHCD+lc=; h=Received:Received:Received:Received:From:To:Subject:Date: Message-ID; b=NfAYRKXGebBBqLHyStAQNToIsT5TupQrWw6bVtg1y1P1Bymn4S53HQ361WZoQwpxj qWWXdaojepFAXmg2XrzQcU2yAgs2XVvgIluQW1D8HgoDGy9KrsddPMrL29/hwMBuWI S7FgIyHz8wzRR808lSzemln1dLvver73FfkEg0HjW6xV/sYpZSoRBL9MbEpFYa67kB c04kEkJb3vRbEllUDcKuWI+PsWqoEe+CwnTbegW/ZDYbJbRvao/+Ga2NMu92I6tKpq iRmKx97ShLJqxryY2brfb6CjxxfrjnqTC9tt392T4WZ9CheygJ9Vx4UtZqYNcLI6CE 9eEMNes1sp+AQ== |
| X-Xfinity-VMeta | sc=0.00;st=legit |
| X-Authentication-Warning | hobgoblin.ariadne.com: worley set sender to worley@alum.mit.edu using -f |
| In-Reply-To | <bd77214b-2690-f5de-a814-108e5be8b6f1@case.edu> (chet.ramey@case.edu) |
| Received-SPF | permerror client-ip=2001:558:fe21:29:69:252:207:39; envelope-from=worley@alum.mit.edu; helo=resqmta-ch2-07v.sys.comcast.net |
| X-detected-operating-system | by eggs.gnu.org: First seen = 2020/06/16 22:13:36 |
| X-ACL-Warn | Detected OS = ??? |
| X-Spam_score_int | -18 |
| X-Spam_score | -1.9 |
| X-Spam_bar | - |
| X-Spam_report | (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN |
| 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 <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 | <87o8pi4eya.fsf@hobgoblin.ariadne.com> |
| Xref | csiph.com gnu.bash.bug:16392 |
Show key headers only | View raw
What a weird problem! Yes, "hash -l" should produce output that can be
read by bash. But sending the "bash: hash table empty" message to
stderr put you in the situation where "hash -l >file" doesn't really
leave the output of "hash -l" in "file". Maybe you could make the empty
message be a comment?
$ hash -l
# hash: hash table empty
That is acceptable input for bash, has the right effect when read by
bash, is human-readable, and is capturable by redirecting stdout.
Dale
Back to gnu.bash.bug | Previous | Next | Find similar
Re: hash -l with empty hash table prints to stdout worley@alum.mit.edu (Dale R. Worley) - 2020-06-16 22:13 -0400
csiph-web