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 c...@case.edu http://cnswww.cns.cwru.edu/~chet/