Bug 1340541 - Option "-n" does different things on ipcalculator and ipcalc
Summary: Option "-n" does different things on ipcalculator and ipcalc
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: ipcalc
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nikos Mavrogiannopoulos
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1297685
TreeView+ depends on / blocked
 
Reported: 2016-05-27 19:12 UTC by ani.stoicheva
Modified: 2016-05-31 09:00 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-05-31 09:00:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


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