Bug 1151185 - Bogus help message for not found command ".."
Summary: Bogus help message for not found command ".."
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-09 18:12 UTC by Zbigniew Jędrzejewski-Szmek
Modified: 2015-12-17 17:18 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-11-26 10:58:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.