Skip to content

Commit

Permalink
Put sandboxes under /tmp in the -L option example
Browse files Browse the repository at this point in the history
  • Loading branch information
gliargovas committed Oct 11, 2023
1 parent 1077f37 commit 7f30531
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,12 @@ explore /tmp/tmp.X6OQb5tJwr` to explore an existing sandbox.
To specify multiple lower directories for overlay (by merging them together), you can use the `-L` flag followed by a colon-separated list of directories. The directories on the left have higher precedence and can overwrite the directories on the right:

```ShellSession
$ try -D sandbox1 "echo 'File 1 Contents - sandbox1' > file1.txt"
...
$ try -D sandbox2 "echo 'File 2 Contents - sandbox2' > file2.txt"
...
$ try -D sandbox3 "echo 'File 2 Contents - sandbox3' > file2.txt"
...
$ try -D /tmp/sandbox1 "echo 'File 1 Contents - sandbox1' > file1.txt"
$ try -D /tmp/sandbox2 "echo 'File 2 Contents - sandbox2' > file2.txt"
$ try -D /tmp/sandbox3 "echo 'File 2 Contents - sandbox3' > file2.txt"

# Now use the -L flag to merge both sandbox directories together, with sandbox3 having precedence over sandbox2
$ try -L "sandbox3:sandbox2:sandbox1" "cat file1.txt file2.txt"
$ try -L "/tmp/sandbox3:/tmp/sandbox2:/tmp/sandbox1" "cat file1.txt file2.txt"
File 1 Contents - sandbox1
File 2 Contents - sandbox3
```
Expand Down

0 comments on commit 7f30531

Please sign in to comment.