#! /bin/sh

# test interaction between conditionals and macro expansion

stap $@ -p1 - 1 2 3 4 5 <<'END'

@define foo %( %( $# >= 5 %? @5 %: "" %) %)

probe begin { printf("Hello, World %s!", @foo) }

END
