> On Jun 16, 2020, at 10:51 AM, Chet Ramey
> wrote:
>
>> On 6/16/20 10:26 AM, Eli Schwartz wrote:
>>
>>> On 6/16/20 9:56 AM, Chet Ramey wrote:
>>>
>>> It's not a warning; there's nothing to warn about. An empty hash
>>> table is not an exceptional condition. It's simply informational.
>>
>> Th
On 6/16/20 11:07 PM, bel...@web.de wrote:
> `shopt' doesn't appear to have an option for giving output re-usable as
> input (?).
`shopt -p`, surely. Or `shopt -o -p`.
--
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User
signature.asc
Description: OpenPGP digital signature
> You might want to temporarily enable posix mode, which suppresses the
> message.
Good to know. For scripts intended to be sourced, this would include testing
for posix mode first, then enable posix mode, run `hash -l', then maybe re-
disable it, but ok.
Maybe adopt the POSIX-mode behaviour? Doe
On 6/16/20 10:13 PM, Dale R. Worley wrote:
> 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".
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 comme
On 6/16/20 10:26 AM, Eli Schwartz wrote:
> On 6/16/20 9:56 AM, Chet Ramey wrote:
>> It's not a warning; there's nothing to warn about. An empty hash table is
>> not an exceptional condition. It's simply informational.
>
> Then would you say it is debug info?
No, not at all. What are you trying to
On 6/16/20 9:46 AM, Eli Schwartz wrote:
> On 6/16/20 9:30 AM, Chet Ramey wrote:
>> On 6/15/20 4:47 PM, bel...@web.de wrote:
>>
>>> Bash Version: 5.0
>>> Patch Level: 3
>>> Release Status: release
>>>
>>> Description:
>>
>>> `hash -l' is supposed to generate output that is reusable as input
>>>
On 6/16/20 9:30 AM, Chet Ramey wrote:
> On 6/15/20 4:47 PM, bel...@web.de wrote:
>
>> Bash Version: 5.0
>> Patch Level: 3
>> Release Status: release
>>
>> Description:
>
>> `hash -l' is supposed to generate output that is reusable as input
>> (`help hash' says so, at least). In case the
On 6/15/20 4:47 PM, bel...@web.de wrote:
> Bash Version: 5.0
> Patch Level: 3
> Release Status: release
>
> Description:
> `hash -l' is supposed to generate output that is reusable as input
> (`help hash' says so, at least). In case the hash table is empty, a
> string not re-us
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/bash-2bxm7h/bash-5.0=.
-fstack-protector-strong -Wformat -Werror=format-security -Wall
-Wno-parentheses -Wno-format-security
uname o
10 matches
Mail list logo