Properly quote | expressions, related to #944