summaryrefslogtreecommitdiffstats
path: root/tests/src/vfs/extfs/helpers-list/mc_xcat
blob: 7871a8fca1e9133f9ad641991b38af968054558a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

#
# This program is intended to be identical to 'cat' with the exception that
# it ignores any arguments past the 1st one.
#
# To understand why it's needed, first read the section about
# MC_TEST_EXTFS_LIST_CMD in the README. As explained there, the command in
# MC_TEST_EXTFS_LIST_CMD has to ignore any extra arguments passed to it.
# The tester achieves this by invoking a helper thus (roughly):
#
#    export MC_TEST_EXTFS_LIST_CMD="mc_xcat /path/to/fake/input"
#    sh /path/to/helper list /dev/null
#

exec cat "$1"