File: stray-backlash-warn

package info (click to toggle)
grep 3.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,556 kB
  • sloc: ansic: 111,824; sh: 13,272; perl: 606; makefile: 394; awk: 71; sed: 16
file content (10 lines) | stat: -rwxr-xr-x 318 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/sh

# In grep 3.8-3, the "stray backslash" warning has been temporarily disabled by
# default. Upstream behaviour can be reenabled by setting the
# DEB_GREP_ENABLE_STRAY_BACKSLASH_WARN variable.

set -e

printf foo | grep '\f'
printf foo | DEB_GREP_ENABLE_STRAY_BACKSLASH_WARN=1 grep '\f' 2>&1 | grep stray