summaryrefslogtreecommitdiffstats
path: root/sys-utils/lscpu.c
diff options
context:
space:
mode:
authorKarel Zak2012-08-13 14:23:04 +0200
committerKarel Zak2012-08-13 14:34:47 +0200
commit17b1c1368de17d31e053d4bef3f2e0a74bbbd73b (patch)
treee39f3d33dd3a5a40cd8fc14d771edeb9e73e2d12 /sys-utils/lscpu.c
parentlib/tt: fix \x%02x usage (diff)
downloadkernel-qcow2-util-linux-17b1c1368de17d31e053d4bef3f2e0a74bbbd73b.tar.gz
kernel-qcow2-util-linux-17b1c1368de17d31e053d4bef3f2e0a74bbbd73b.tar.xz
kernel-qcow2-util-linux-17b1c1368de17d31e053d4bef3f2e0a74bbbd73b.zip
lib/tt: always escape '\' to simplify parsing in scripts
The commands echo(1) and printf(1) are usable for escape sequences decoding, for example for x in $(findmnt --noheading --raw --output TARGET); do printf "%b" $x done but it's necessary to escape all '\' chars, otherwise for example \b in foo\bar will be interpreted as backspace. It means that for example findmnt(8) has to use \x5c for the backslash. # findmnt --noheading --raw --output TARGET /dev/sda1 /mnt/ugly/foo\x5cbar Reported-by: Pádraig Brady <P@draigBrady.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/lscpu.c')
0 files changed, 0 insertions, 0 deletions