Bug 1327260 - pmie does not accept s for seconds
Summary: pmie does not accept s for seconds
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: pcp
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nathan Scott
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-14 15:30 UTC by Marko Myllynen
Modified: 2016-08-17 06:36 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-17 06:36:00 UTC
Type: Bug


Attachments (Terms of Use)

Description Marko Myllynen 2016-04-14 15:30:48 UTC
Description of problem:
Unlike pretty much every other PCP client / component, pmie(1) does not seem to accept "s" denoting seconds. This is obviously not critical but would be nice for consistency.

Comment 1 Ken McDonell 2016-08-17 00:20:26 UTC
Marko, in which context are you looking for "s" as an abbreviation?

It works on the command line (-t, -S, -T, -O, etc) just like any other PCP command line tool.

In the pmie language, the "units" are reserved keywords "sec" or "second" or "secs" or "seconds" ... I'm reluctant to add "s" to this list because of possible symbol clashes, e.g. an existing rule

s = <my_favourite_expression>;

would break (that's just the way the pmie lexical scanner works) and if I was persuaded that this was acceptable (which I'm not) it introduces a rat's nest of follow-ons, like "m" for "min", "h" for "hour", ...

I'm inclined to suggest this be issue be closed as WONTFIX.

Comment 2 Marko Myllynen 2016-08-17 06:36:00 UTC
(In reply to Ken McDonell from comment #1)
> Marko, in which context are you looking for "s" as an abbreviation?

In the pmie language. But ...

> It works on the command line (-t, -S, -T, -O, etc) just like any other PCP
> command line tool.
> 
> In the pmie language, the "units" are reserved keywords "sec" or "second" or
> "secs" or "seconds" ... I'm reluctant to add "s" to this list because of
> possible symbol clashes, e.g. an existing rule
> 
> s = <my_favourite_expression>;
> 
> would break (that's just the way the pmie lexical scanner works) and if I
> was persuaded that this was acceptable (which I'm not) it introduces a rat's
> nest of follow-ons, like "m" for "min", "h" for "hour", ...

... this is fair enough, I'll close this one.

Thanks.


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