回答編集履歴
2
コメント欄での指摘をうけ、訂正
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
cat <<EOD
|
19
|
+
cat <<\EOD
|
20
20
|
|
21
21
|
if [ -z "$BASH_VERSION" ]; then
|
22
22
|
|
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
if [ -z "" ]; then
|
82
82
|
|
83
|
-
export CMD_ROOT="/
|
83
|
+
export CMD_ROOT="$HOME/.cmd"
|
84
84
|
|
85
85
|
fi
|
86
86
|
|
1
typo
test
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
cat test.txt | \
|
14
14
|
|
15
|
-
sed -z 's@if [ -z "$BASH_VERSION" ]; then.. export CMD_ROOT="$HOME/.cmd"..fi@
|
15
|
+
sed -z 's@if [ -z "$BASH_VERSION" ]; then.. export CMD_ROOT="$HOME/.cmd"..fi@@'
|
16
16
|
|
17
17
|
|
18
18
|
|
@@ -74,8 +74,6 @@
|
|
74
74
|
|
75
75
|
|
76
76
|
|
77
|
-
xx
|
78
|
-
|
79
77
|
|
80
78
|
|
81
79
|
zzz
|