View Issue Details

IDProjectCategoryView StatusLast Update
00002421003.1(2008)/Issue 7Shell and Utilitiespublic2013-04-16 13:06
ReporterKonrad_Schwarz Assigned Toajosey  
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted As Marked 
NameKonrad Schwarz
OrganizationSiemens AG
User Referencem4: shift, translit
Sectionm4
Page Number2878
Line Number94316-94318,94344-94349
Interp Status---
Final Accepted Text0000242:0000416
Summary0000242: m4 shift description incomplete
DescriptionIn m4, the *shift* built-in returns a comma-separated list of its arguments except the first. _*shift* must quote each of its arguments._

For reference, see the GNU m4 Info manual at http://www.gnu.org/software/m4/manual/html_node/Shift.html#Shift. However, this requirement is easy to understand: otherwise, multiple application of the ``shift'' built-in (to get at the n'th argument) would not be possible.

In m4, the *translit* built-in should delete those characters from its first argument that are are placed at its second argument at positions that are longer than the third argument. This is specified in the original Kernighan & Ritchie paper m4 (to be found at http://wolfram.schneider.org/bsd/7thEdManVol2/m4/m4.pdf).
Desired ActionReplace

The defining text for the *shift* macro shall be all of its arguments except for the first one.

with

The defining text for the *shift* macro shall be a comma-separated list of its arguments except the first one. Each argument shall be quoted using the current quoting strings.

Add to

The defining text of the *translit* macro shall be the first argument with every character that occurs in the second argument replaced with the corresponding character from the third argument.

the following:

If no replacement character is specified for some source character--because the second argument is longer than the third argument--that character shall be deleted from the first argument in *translit*'s defining text.

[This wording could be improved.]
Tagstc1-2008

Activities

Don Cragun

2010-05-06 15:47

manager   bugnote:0000416

Replace:

The defining text for the *shift* macro shall be all of its arguments except for the first one.

on P2878, L94316-94317 with:

The defining text for the *shift* macro shall be a comma-separated list of its arguments except the first one. Each argument shall be quoted using the current quoting strings.

Add:

The defining text of the *translit* macro shall be the first argument with every character that occurs in the second argument replaced with the corresponding character from the third argument.

the following in the middle of the line on P2878, L94346:

If no replacement character is specified for some source character because the second argument is longer than the third argument, that character shall be deleted from the first argument in *translit*'s defining text.

Issue History

Date Modified Username Field Change
2010-04-27 08:46 Konrad_Schwarz New Issue
2010-04-27 08:46 Konrad_Schwarz Status New => Under Review
2010-04-27 08:46 Konrad_Schwarz Assigned To => ajosey
2010-04-27 08:46 Konrad_Schwarz Name => Konrad Schwarz
2010-04-27 08:46 Konrad_Schwarz Organization => Siemens AG
2010-04-27 08:46 Konrad_Schwarz User Reference => m4: shift, translit
2010-04-27 08:46 Konrad_Schwarz Section => m4
2010-04-27 08:46 Konrad_Schwarz Page Number => 0
2010-04-27 08:46 Konrad_Schwarz Line Number => 0
2010-04-30 00:34 Don Cragun Page Number 0 => 2878
2010-04-30 00:34 Don Cragun Line Number 0 => 94316-94318,94344-94349
2010-04-30 00:34 Don Cragun Interp Status => ---
2010-05-06 15:47 Don Cragun Note Added: 0000416
2010-05-06 15:47 Don Cragun Status Under Review => Resolved
2010-05-06 15:47 Don Cragun Resolution Open => Accepted As Marked
2010-05-06 15:48 Don Cragun Final Accepted Text => see 0000242:0000416
2010-05-06 15:49 ajosey Final Accepted Text see 0000242:0000416 => 0000196:0000406
2010-05-06 15:53 ajosey Final Accepted Text 0000196:0000406 => 0000242:0000416
2010-08-27 11:19 ajosey Tag Attached: tc1-2008
2013-04-16 13:06 ajosey Status Resolved => Closed