0 400 0 # Nested elements and other complex cases 1 400 0 0 400 0 # String with backtick inclusion 0 400 0 "x`ls`" 0 400 0 # Nested string 0 400 0 "x`ls "*.c"`" 0 400 0 # Not terminated at first " 0 400 0 "x`ls" # "`" # 1 400 0 0 400 0 # String with command inclusion 0 400 0 "x$(ls)" 1 400 0 0 400 0 # Nested command 0 400 0 $(ls -la$(ls *.c)) 1 400 0 0 400 0 # Check strings and backticks in command 0 400 0 echo $('ls' "." `ls` $'.' $".") 1 400 0 0 400 0 # $( not terminated by ) if contains unterminated string 0 400 0 $('x) # ') # 0 400 0 $("x) # ") # 0 400 0 $(`x) # `) # Bash doesn't like this 0 400 0 $($'x) # ') # 0 400 0 $($"x) # ") # 1 400 0 0 400 0 # Parameter expansion 0 400 0 var=abcdef 0 400 0 sub=abc 0 400 0 rep='& ' 0 400 0 echo ${var/$sub/"${rep}}"} # 1 400 0 0 400 0 # '$' in variable 0 400 0 echo $$PID 0 400 0 echo $var${var} 1 400 0 0 400 0 # Here-doc with internal elements 2 400 0 + cat <