All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH ltp 1/6] fs/acls/acl_test01: Fix shellcheck issue SC2069
@ 2018-04-20  3:18 Yixin Zhang
  2018-04-20  3:18 ` [LTP] [PATCH ltp 2/6] io/stress_floppy/stress_floppy: " Yixin Zhang
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Yixin Zhang @ 2018-04-20  3:18 UTC (permalink / raw)
  To: ltp

error: The order of the 2>&1 and the redirect matters. The 2>&1 has to
be last. [SC2069]

Signed-off-by: Yixin Zhang <yixin.zhang@intel.com>
---
 testcases/kernel/fs/acls/acl_test01 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/fs/acls/acl_test01 b/testcases/kernel/fs/acls/acl_test01
index 63683e707..c91eb5686 100755
--- a/testcases/kernel/fs/acls/acl_test01
+++ b/testcases/kernel/fs/acls/acl_test01
@@ -78,7 +78,7 @@ do_setup()
 		tst_brkm TCONF "[ losetup.1 ] Failed to find an available loopback device -- is the required support compiled in your kernel?"
 	fi
 
-	if ! losetup $LOOP_DEV $TMP/tacl/blkext3 2>&1 > /dev/null; then
+	if ! losetup $LOOP_DEV $TMP/tacl/blkext3 > /dev/null 2>&1; then
 		echo ""
 		tst_brkm TCONF "[ losetup.2 ] Failed to setup the device."
 	fi
-- 
2.14.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-04-20  9:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-20  3:18 [LTP] [PATCH ltp 1/6] fs/acls/acl_test01: Fix shellcheck issue SC2069 Yixin Zhang
2018-04-20  3:18 ` [LTP] [PATCH ltp 2/6] io/stress_floppy/stress_floppy: " Yixin Zhang
2018-04-20  3:18 ` [LTP] [PATCH ltp 3/6] numa/numa01.sh: " Yixin Zhang
2018-04-20  3:18 ` [LTP] [PATCH ltp 4/6] network/nfs/fsx-linux/fsx.sh: " Yixin Zhang
2018-04-20  3:18 ` [LTP] [PATCH ltp 5/6] network/tcp_cmds/host/host01: " Yixin Zhang
2018-04-20  3:18 ` [LTP] [PATCH ltp 6/6] network/tcp_cmds/rcp/rcp01: Fix shellcheck issue SC2157/SC2069 Yixin Zhang
2018-04-20  8:26 ` [LTP] [PATCH ltp 1/6] fs/acls/acl_test01: Fix shellcheck issue SC2069 Petr Vorel
2018-04-20  8:28   ` Cyril Hrubis
2018-04-20  9:08 ` Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.