Mailinglist Archive: opensuse-bugs (13048 mails)

< Previous Next >
[Bug 466397] New: after removing command-not-found, running shells stop reporting "command not found"
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 15 Jan 2009 06:28:22 -0700 (MST)
  • Message-id: <bug-466397-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=466397


Summary: after removing command-not-found, running shells stop
reporting "command not found"
Classification: openSUSE
Product: openSUSE 11.1
Version: Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: prusnak@xxxxxxxxxx
ReportedBy: mmarek@xxxxxxxxxx
QAContact: qa@xxxxxxx
CC: mvyskocil@xxxxxxxxxx
Found By: ---


After removing the command-not-found package, running bash sessions stop
reporting "bash: xyz: command not found":

$ xyz; echo $?
1
$ command -V command_not_found_handle
command_not_found_handle is a function
command_not_found_handle ()
{
if [ -n "$MC_SID" ]; then
return 127;
fi;
[ -x /usr/bin/python ] && [ -x /usr/bin/command-not-found ] &&
/usr/bin/python /usr/bin/command-not-found "$@" zypp
}

it should return 127 if the program is not available.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >