Path: csiph.com!fu-berlin.de!usenet.stanford.edu!not-for-mail From: Hugo Gabriel Eyherabide Newsgroups: gnu.bash.bug Subject: 'complete' not working as documented Date: Sat, 11 Aug 2018 08:14:24 +0300 Lines: 37 Approved: bug-bash@gnu.org Message-ID: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: usenet.stanford.edu 1533964470 2632 208.118.235.17 (11 Aug 2018 05:14:30 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=0MZNgQjJUllh0WUvH08HjBCVX215yCkx3Dyz+QB8QmQ=; b=ZINnn/KXn5nS9goSYx5TVO/G4dGCpm5k1rjrb/zQl+xbHnG3/Rk0bAiqZAvBq30/hS 45IAbo3MyzVJJzjD6UfzoFx2qwTBUJ/4zUL9xdKVhQ3NUp9fC2cngBtV1guANcRduFCo Psmaix2WTk0bRy+GR+HGJJ/TzRZf11ChbL9Rjmh4lETP6jVCOINGYRM30vEfFaaeLD2A DzDdaQo+Axmy0npp441mgj7IEOlGoFupSDDmb+SBmj0/vlrzjJOKOhWpqOFw0fR8U7En wz3Dj65WsgraCjpNb6Q/ST+2ZV08P8kgIctstJTN19UhEed9xeeztH/BGbKBeiI3KyZi fvbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0MZNgQjJUllh0WUvH08HjBCVX215yCkx3Dyz+QB8QmQ=; b=jC7zqwqxvXCaAUbv4OnmtiFfyliAi1V7025/akruGAQUWag/5+EgyoDP4WV4eqfbJa 8LWMqkypLZ3LxZoC4YBbNpPvuodDYnjJwIN+Du/1Jd9Bh1zTctcKcD9ayIzostVQW4Rf ZXqXkOw7XgWEjVB04w5thP2hGYBU8X9IBdTYlWV3bUmGQDT9OeeXfF/sszcXdKWTh2CT 9HaPTtdlVU+fBlf4LoTK1xIllizF9Hy5tLFg/NVjPI8kpT5RpHc/eVYpcK0aijomJUpR aFd9S3KousuEChIhLkpxwUFrFDaTB1YTq/5iN4y3rLZbo+Mse7IW2MnA8sbq6KJhCMyO ViYQ== X-Gm-Message-State: AOUpUlGHxnmxQVRBBQC7Sj/mr1hmp6kFfMjdIjy7WAJsHMXpB0GGkZNu ndsISTzSVUMYXZplz/5UTMneg1LJOcEjctr7BDrJWZfH X-Google-Smtp-Source: AA+uWPzW2DD9+GmTeJqLqjoV8AyA3M/9sjdzk2fWDuIQTOYlMwV4Y3zRKavk8LJLwkDQkP9DassZqdxyhb3EJBRc8Sc= X-Received: by 2002:a0c:e74c:: with SMTP id g12-v6mr8256940qvn.118.1533964465429; Fri, 10 Aug 2018 22:14:25 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::22b X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:14465 Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/local/share/locale$ uname output: Linux hugo-agile 4.13.0-43-generic #48~16.04.1-Ubuntu SMP Thu May 17 12:56:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64-unknown-linux-gnu Bash Version: 4.4 Patch Level: 18 Release Status: release Description: Bash manual says 'complete ... -D ... name' should be correct, whatever between -D and name applying to the completion on a command for which completion has not been previously defined. However, $ complete -W aa -D -S name aabbname results in '-W aa' also applying for the default completion, and '-S name' also applying for the completion on aabbname. In addition, $ complete -p -D shows the options reordered as follows complete -W 'aa' -S 'name' -D and $ complete -p aabbname shows nothing, indicating that the completion for aabbname has never been defined.