Thread (6 messages) 6 messages, 2 authors, 2023-12-07

Re: [PATCH blktests 1/2] block/011: recover test target devices to online or live status

From: Bart Van Assche <bvanassche@acm.org>
Date: 2023-11-29 18:05:13

On 11/29/23 02:31, Shin'ichiro Kawasaki wrote:
+	if [[ -r $TEST_DEV_SYSFS/device/state ]]; then
+		state=$(cat "$TEST_DEV_SYSFS/device/state")
Why the separate -r test and cat instead of this?

state=$({ cat "$TEST_DEV_SYSFS/device/state"; } 2>/dev/null)

Thanks,

Bart.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help