Bug 1393168 - default command_not_found_handle causes certain inputs to be ignored
Summary: default command_not_found_handle causes certain inputs to be ignored
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: 26
Hardware: noarch
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-09 02:36 UTC by mareksp.92+bugs
Modified: 2018-05-29 11:34 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-29 11:34:19 UTC
Type: Bug


Attachments (Terms of Use)

Description mareksp.92+bugs 2016-11-09 02:36:03 UTC
Warning: this merely an instance of unexpected behavior. I'm filling this for sake of completeness.

Description of problem:
See http://unix.stackexchange.com/questions/322000/why-does-bash-treat-commandlines-starting-with-dots-specially (I'm the author)

Version-Release number of selected component (if applicable):
GNU bash, version 4.3.42(1)-release (x86_64-redhat-linux-gnu)
Distro's default implementation of command_not_found_handle 

How reproducible:
Always, unless unsetting of command_not_found_handle.

Steps to Reproduce:
1. Type ".whatever this is going to be ignored" into the shell (w/o quotes)
2. Hit enter.
3. Nothing happens.

Actual results:
Nothing happens.

Expected results:
bash : .whatever : command not found...

Additional info:
This is unexpected behavior, severity: minimal

Comment 1 Kamil Dudka 2016-11-09 09:19:39 UTC
(In reply to mareksp.92+bugs from comment #0)
> How reproducible:
> Always, unless unsetting of command_not_found_handle.

Any idea, where is command_not_found_handle being set on your system?

I have it unset by default on my Fedora 24 box and bash behaves as expected:

[kdudka@f24 ~]$ .whatever this is going to be ignored
bash: .whatever: command not found

Comment 2 David Kaspar // Dee'Kej 2016-11-09 09:53:06 UTC
So, looking where the command_not_found_handle() [bash function] comes from, I see this:
> /etc/profile.d/PackageKit.sh:9:command_not_found_handle () {

According to 'dnf whatprovides' this is part of:

> PackageKit-command-not-found-1.1.3-2.fc24.x86_64 : Ask the user to install command line programs automatically
> Repo        : @System

Re-assigning...

Comment 3 Fedora End Of Life 2017-07-25 23:48:56 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 4 mareksp.92+bugs 2017-11-27 12:24:06 UTC
Fixed upstream 13 days ago in commit d3533878038ebdcf6ae2b3524c8c8e2f1b47e84b.

Comment 5 mareksp.92+bugs 2017-11-27 12:25:42 UTC
Also this is a duplicate of #1292531, as my research found out.
I don't know whether to close this one or the other one.

Comment 6 Fedora End Of Life 2018-05-03 09:05:46 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 7 Fedora End Of Life 2018-05-29 11:34:19 UTC
Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26
is no longer maintained, which means that it will not receive any
further security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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