# Suppose you want to run the long-lived program prog after printing the list of its arguments.

#!/command/execlineb
elgetpositionals
foreground { echo $0 $@ }
prog $@

# will work, but will pollute prog's environment with a set of positional parameters that have no meaning to it. A better script is:

#!/command/execlineb
elgetpositionals
foreground { echo $0 $@ }
emptyenv -P
prog $@
