Bug 1340541

Summary: Option "-n" does different things on ipcalculator and ipcalc
Product: [Fedora] Fedora Reporter: ani.stoicheva
Component: ipcalcAssignee: Nikos Mavrogiannopoulos <nmavrogi>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: atodorov, nmavrogi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-31 09:00:19 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:
Bug Depends On:    
Bug Blocks: 1297685    

Description ani.stoicheva 2016-05-27 19:12:44 UTC
Description of problem:

The option "-n" of ipcalc doesn't follow the specification: "ipcalculator has to be obsoleted in Fedora 24 and ipcalc will provide a drop in replacement."

Please, read it in part 1.6 Scope on the following address: https://fedoraproject.org/wiki/Changes/ipcalculator 

In terminal, there's a difference between the output of the command "-n" (ipcalculator -n and ipcalc -n): 
    ipcalculator -n --> Don't display ANSI color codes, while
    ipcalc -n --> Display the network address for the given IP addresses and net-mask.

I think this difference may cause problems to the many users who use the old version of the tool, because they expect other behavior and this may corrupt the result of their code.


Version-Release number of selected component (if applicable): Latest Rowhide


How reproducible: always


Actual results:

The option "-n" does different things in the 2 versions of the tool (ipcalculator and ipcalc).

Expected results:

The ipcalc options should do exactly he same things as ipcalculator's options as it was written that the specification.

Comment 1 Nikos Mavrogiannopoulos 2016-05-30 07:29:48 UTC
(In reply to ani.stoicheva from comment #0)
> Description of problem:
> 
> The option "-n" of ipcalc doesn't follow the specification: "ipcalculator
> has to be obsoleted in Fedora 24 and ipcalc will provide a drop in
> replacement."

Unfortunately that cannot be addressed since the '-n' option of ipcalc is essential for its usage in init scripts.

> Please, read it in part 1.6 Scope on the following address:
> https://fedoraproject.org/wiki/Changes/ipcalculator 

The drop in was with respect to user-visible output (ipcalculator was a tool to be used for interactive status). The tools will not be command line identical. I've removed the "drop in" keyword for clarity.

> I think this difference may cause problems to the many users who use the old
> version of the tool, because they expect other behavior and this may corrupt
> the result of their code.

ipcalc will not provide ipcalculator binary, so a modification of such scripts is anyway required. However do you think that this will be an issue? Is ipcalculator used in scripts?

Comment 2 Alexander Todorov 2016-05-31 09:00:19 UTC
(In reply to Nikos Mavrogiannopoulos from comment #1)
> Is ipcalculator used in scripts?

We can't really know, can we ?

> > Please, read it in part 1.6 Scope on the following address:
> > https://fedoraproject.org/wiki/Changes/ipcalculator 
> 
> The drop in was with respect to user-visible output (ipcalculator was a tool
> to be used for interactive status). The tools will not be command line
> identical. I've removed the "drop in" keyword for clarity.
> 

Thanks for the update, I'm closing this bug now.
I