Package: bash
Version: 3.2-4
Severity: normal

The bash manual page, in its section the declare built-in function, says:

  The -p option will display the attributes and values of each name. 
  When -p is used, additional options are ignored. 

That description is apparently wrong.  Bash does not ignore additional 
options with -p.

Here's one example:

  
  $ declare -p | head -5
  BASH=/bin/bash
  BASH_ARGC=()
  BASH_ARGV=()
  BASH_COMPLETION=/etc/bash_completion
  BASH_COMPLETION_DIR=/etc/bash_completion.d
  $ declare -p -F | head -5
  declare -f _a2dismod
  declare -f _a2dissite
  declare -f _a2enmod
  declare -f _a2ensite
  declare -f _alias
  $ declare -F -p | head -5
  declare -f _a2dismod
  declare -f _a2dissite
  declare -f _a2enmod
  declare -f _a2ensite
  declare -f _alias
  $
  
Here's another:

  
  $ declare -p | head -5
  BASH=/bin/bash
  BASH_ARGC=()
  BASH_ARGV=()
  BASH_COMPLETION=/etc/bash_completion
  BASH_COMPLETION_DIR=/etc/bash_completion.d
  $ declare -p -a | head -5
  declare -a BASH_ARGC='()'
  declare -a BASH_ARGV='()'
  declare -a BASH_LINENO='()'
  declare -a BASH_SOURCE='()'
  declare -ar BASH_VERSINFO='([0]="3" [1]="2" [2]="39" [3]="1" [4]="release" 
[5]="i486-pc-linux-gnu")'
  $ 
  




-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bash depends on:
ii  base-files                5lenny2        Debian base system miscellaneous f
ii  debianutils               2.30           Miscellaneous utilities specific t
ii  libc6                     2.7-18         GNU C Library: Shared libraries
ii  libncurses5               5.7+20081213-1 shared libraries for terminal hand

Versions of packages bash recommends:
ii  bash-completion               20080705   programmable completion for the ba

Versions of packages bash suggests:
pn  bash-doc                      <none>     (no description available)

-- no debconf information




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to