source: trunk/essentials/sys-devel/m4/examples/sysv-args.m4

Last change on this file was 3090, checked in by bird, 18 years ago

m4 1.4.8

File size: 332 bytes
Line 
1divert(-1)
2define(`nargs', `$#')
3define(`concat', `ifelse(1, $#, `$1', `$1` 'concat(shift($@))')')
4traceon(`concat', `nargs')
5divert
6
7nargs
8nargs()
9nargs(1,2,3,4,5,6)
10
11concat()
12concat(`hej', `med', `dig')
13concat(`hej', `med', `dig', `en gang igen')
14concat(an, awful, lot, of, argument, at, least, more, that, ten, silly, arguments)
Note: See TracBrowser for help on using the repository browser.