RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 681078 - Need input 'quit' twice to quit ncftool interactive terminal
Summary: Need input 'quit' twice to quit ncftool interactive terminal
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: netcf
Version: 6.1
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Laine Stump
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-01 03:06 UTC by zhanghaiyan
Modified: 2011-12-06 15:18 UTC (History)
4 users (show)

Fixed In Version: netcf-0.1.9-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 15:18:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1631 0 normal SHIPPED_LIVE netcf bug fix and enhancement update 2011-12-06 00:50:45 UTC

Description zhanghaiyan 2011-03-01 03:06:54 UTC
Description of problem:
Need input 'quit' twice to quit ncftool interactive terminal when previous command returns false

Version-Release number of selected component (if applicable):
- kernel-2.6.32-117.el6.x86_64
- netcf-0.1.7-1.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.# ncftool 
ncftool> cd
Unknown command 'cd'
ncftool> quit
ncftool> quit
[root@dhcp-65-132 ~]# 
  
Actual results:
Need input 'quit' twice to quit interactive terminal, it seems it has some relationship with the previous command return value

Expected results:
quit once

Additional info:

Comment 2 RHEL Program Management 2011-04-04 02:10:08 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 3 Laine Stump 2011-05-18 17:39:11 UTC
A fix has been committed to upstream netcf, and will be included when RHEL
netcf is rebased (see Bug 705061):

commit ce8270a336222816f907adc84cbdc322a82f0970
Author: Laine Stump <laine>
Date:   Wed May 11 22:45:23 2011 -0400

    ncftool: Don't require "quit" command twice after a failed command
    
    This is in response to: https://bugzilla.redhat.com/show_bug.cgi?id=681078
    
    If an invalid command was entered at the ncftool prompt, and then
    "quit" was immediately issued, it would be ignored - a 2nd "quit"
    would be needed to exit from ncftool.
    
    This was caused by main_loop() checking the wrong return status when
    deciding to exit. Rather than checking the status of the command that
    was just run, it was looking of the status of the command just prior
    to that, and only exiting if that command was successful. What was
    needed was to check the return status of the "quit" command (which
    currently is always 0, but I suppose may change in the future.)

Comment 4 Laine Stump 2011-06-14 21:36:56 UTC
A fix for this bug is included in netcf-0.1.8-1.el6. A build is available here:

https://brewweb.devel.redhat.com/buildinfo?buildID=167451

Comment 6 Vivian Bian 2011-08-04 06:57:53 UTC
tested with netcf-0.1.9-1.el6

Steps:
# ncftool 
ncftool> cd 
Unknown command 'cd'
ncftool> quit
# 

to quit ncftool interactive terminal , you only input 'quit' once 

So set bug status to VERIFIED

Comment 7 errata-xmlrpc 2011-12-06 15:18:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1631.html


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