Normally, if a command that is silenced with the . prefix receives an identifier-type alias as a parameter, the silencing effect of the command will be propagated to any applicable line of code within the alias as well. However, if the command is dynamically-coded (e.g., as a variable), this silencing-effect propagation will not occur if the . prefix is prewritten into the dynamically-coded command's value1 (even though the command itself will be silenced as expected2), and the prefix will have to be manually affixed to the dynamically-coded command to achieve this behavior instead2:

Code
alias -l testqpfx {
  !inc -u0 %tnum
  
  !var %exp = $iif( $show == $1 , $true , $false )
  !echo -ag  Test %tnum - $2 $iif( $1 , verbose , silenced ) evaluation $3 
  !echo -agq  This should $iif( !%exp , not ) appear, ($show expected to be $1) 
  !return  Test %tnum - 98, $+ $iif( %exp , 44[ PASS ] , 52[ FAIL ] ) $+ 
}

alias runqpfxtests {
  !echo -ag $testqpfx( $true , Hard-coded )
  !linesep
  
  !.echo -ag $testqpfx( $false , Hard-coded )
  !linesep
  

  !var %dcsA = !echo -ag, %dcsB = !.echo -ag , %dcsC = !.echo -agq , %dcsD = echo -ag
  
  %dcsA $testqpfx( $true , Dynamically-coded )
  !linesep
  
  %dcsB $testqpfx( $false , Dynamically-coded , with command as / $+ %dcsB  )
  !linesep
  
  %dcsC $testqpfx( $false , Dynamically-coded , with command as / $+ %dcsC )
  !linesep
  
  !.%dcsD $testqpfx( $false , Dynamically-coded , with hard-coded command prefixes )
  !linesep
}

/runqpfxtests - Tested on v7.76 and beta v7.76.2477

  1. as demonstrated by %dcsB / Test 4 of the example script
  2. as demonstrated by %dcsC / Test 5 of the example script
  3. as demonstrated by %dcsD / Test 6 of the example script