回答編集履歴
2
追記
test
CHANGED
@@ -13,6 +13,8 @@
|
|
13
13
|
`/tmp/parent.sh`で以下のようにすると`01-child.sh`の`pwd`で`/tmp/children`を得られます。
|
14
14
|
|
15
15
|
```bash
|
16
|
+
|
17
|
+
# ↓に変更 ./children/01-child.sh
|
16
18
|
|
17
19
|
(cd ./children ; ./01-child.sh)
|
18
20
|
|
1
誤記修正
test
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
├── children
|
34
34
|
|
35
|
-
│ └── child
|
35
|
+
│ └── 01-child.sh
|
36
36
|
|
37
37
|
└── parent.sh
|
38
38
|
|
@@ -44,11 +44,11 @@
|
|
44
44
|
|
45
45
|
#!/bin/bash
|
46
46
|
|
47
|
-
./children/child
|
47
|
+
./children/01-child.sh
|
48
48
|
|
49
49
|
|
50
50
|
|
51
|
-
root:/tmp/$ cat children/child
|
51
|
+
root:/tmp/$ cat children/01-child.sh
|
52
52
|
|
53
53
|
#!/bin/bash
|
54
54
|
|