bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Documentation Update


From: Chet Ramey
Subject: Re: Documentation Update
Date: Fri, 12 Dec 2014 14:20:35 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 12/12/14, 9:59 AM, David J. Haines wrote:
> Hi all,
> 
> When started interactively, bash sets the extglob shopt; however, that
> fact seems to have been overlooked in the manpage. The behavior of bash
> itself is great, but in the context of the manpage, it appears
> erroneous, as it indicates that use of 'shopt' is necessary for extglob
> to be enabled.

This is a configure-time option, but unless your vendor changes it, it's
off by default.  It can also be changed in a startup file or another file
that gets sourced, like bash-completion.


> Likewise, hostcomplete seems to be disabled when bash is
> non-interactive, which behavior is also not documented.

This isn't the case in bash as it's distributed:

$ cat x31
shopt hostcomplete
$ ./bash ./x31
hostcomplete    on
$ ./bash -c 'shopt hostcomplete'
hostcomplete    on
$ ./bash --version
GNU bash, version 4.3.30(881)-maint (i386-apple-darwin12.2.0)
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]