File: whitespace-preserved

package info (click to toggle)
sensible-utils 0.0.26
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 604 kB
  • sloc: sh: 859; makefile: 122; sed: 88
file content (8 lines) | stat: -rwxr-xr-x 196 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
#!/bin/sh
set -e

# test if multiple arguments with spaces inside will not get mangled
data="$(TERMINAL_EMULATOR='printf Q%sQ\\n' sensible-terminal 'a b' c 'd	e')"
[ "$data" = 'Qa bQ
QcQ
Qd	eQ' ]