2013-01-19 00:09:00 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# This file is part of util-linux.
|
|
|
|
#
|
|
|
|
# This file is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This file is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
2014-02-16 23:54:14 +00:00
|
|
|
TS_TOPDIR="${0%/*}/../.."
|
2013-01-19 00:09:00 +00:00
|
|
|
TS_DESC="line"
|
|
|
|
|
|
|
|
. $TS_TOPDIR/functions.sh
|
|
|
|
ts_init "$*"
|
|
|
|
|
2013-04-10 17:30:15 +02:00
|
|
|
if [ ! -x "$TS_CMD_LINE" ]; then
|
|
|
|
ts_skip "line disabled"
|
|
|
|
fi
|
|
|
|
|
2013-01-19 00:09:00 +00:00
|
|
|
printf "a\nb\n" |
|
|
|
|
$TS_CMD_LINE > $TS_OUTPUT 2>&1
|
|
|
|
|
|
|
|
ts_finalize
|