Bug 1151185

Summary: Bogus help message for not found command ".."
Product: [Fedora] Fedora Reporter: Zbigniew JÄ™drzejewski-Szmek <zbyszek>
Component: PackageKitAssignee: Richard Hughes <rhughes>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: admiller, hek2mgl, jonathan, kalevlember, ooprala, rdieter, rhughes, smparrish
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-26 10:58:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zbigniew Jędrzejewski-Szmek 2014-10-09 18:12:54 UTC
Description of problem:
$ ..
bash: ..: command not found...
Similar commands are::
'..'
'.'

Version-Release number of selected component (if applicable):
bash-4.3.30-1.fc21.x86_64

How reproducible:
100%

Comment 1 Ondrej Oprala 2014-10-20 08:08:13 UTC
Hi Zbigniew,

The suggestion isn't part of the bash package, it's actually provided by PackageKit-command-not-found - reassigning.

Comment 2 Richard Hughes 2014-11-26 10:58:39 UTC
commit 0e85001b247c2ed933e5eb028cd167a8e3e40589
Author: Richard Hughes <richard>
Date:   Wed Nov 26 10:58:17 2014 +0000

    command-not-found: Do not attempt to run for anything prefixed with '.'
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1151185

Comment 3 hek2mgl 2015-12-17 12:17:57 UTC
What's the intention behind this? I mean, .. indeed isn't a command while . is the short version of the `source` builtin.

I'm asking because it seems to lead to confusion:

http://stackoverflow.com/questions/34309107/bash-does-not-print-any-error-msg-upon-non-existing-commands-starting-with-dot

Other distros (tested on Debian and Gentoo) are also not doing so.

Comment 4 Rex Dieter 2015-12-17 13:32:38 UTC
Intention behind the bug (initial comment) or the fix (comment #2) ?

Comment 5 Rex Dieter 2015-12-17 13:34:07 UTC
Ah, reading the referenced thread, 

$ .anything

now does not print *any* error (even "command not found")

I'd suggest filing a separate bug for this.

Comment 6 hek2mgl 2015-12-17 16:13:24 UTC
(In reply to Rex Dieter from comment #5)
> Ah, reading the referenced thread, 
> 
> $ .anything
> 
> now does not print *any* error (even "command not found")
Exactly!

> I'd suggest filing a separate bug for this.
Ok. Are you gonna do it? Or should I do?

Comment 7 Rex Dieter 2015-12-17 16:24:37 UTC
hoping you would, you're the one interested

Comment 8 hek2mgl 2015-12-17 16:29:59 UTC
(In reply to Rex Dieter from comment #7)
> hoping you would, you're the one interested

Ok

Comment 9 hek2mgl 2015-12-17 17:18:19 UTC
Created https://bugzilla.redhat.com/show_bug.cgi?id=1292531