shell: split read builtin from ash
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
test 1: | abc1 def |
|
||||
test 2: | \abc2 d\ef |
|
||||
test 3: |abc3 def|
|
||||
test 4: |\abc4 d\ef|
|
||||
Done
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
echo ' \abc1 d\ef ' | ( read ; echo "test 1: |$REPLY|" )
|
||||
echo ' \abc2 d\ef ' | ( read -r ; echo "test 2: |$REPLY|" )
|
||||
echo ' \abc3 d\ef ' | ( read REPLY; echo "test 3: |$REPLY|" )
|
||||
echo ' \abc4 d\ef ' | ( read -r REPLY; echo "test 4: |$REPLY|" )
|
||||
echo Done
|
||||
Reference in New Issue
Block a user