Permalink
Please sign in to comment.
Browse files
If the dup fails in _PushDup, then don't restore FDs later in Pop().
This fixes 'echo hi 6>&1', and also gold/de1.sh (an excerpt from debootstrap). Addresses issue #62. Also: - If there are no redirects, don't push empty frames on FdState. - remove old comments
- Loading branch information...
Showing
with
60 additions
and 37 deletions.
- +4 −10 bin/oil.py
- +14 −11 core/cmd_exec.py
- +17 −15 core/process.py
- +24 −0 gold/de1.sh
- +1 −1 test/spec.sh
| @@ -0,0 +1,24 @@ | ||
| #!/bin/bash | ||
| # | ||
| # Snippet from deboostrap. | ||
| set -e | ||
| download_debs() { | ||
| echo download_debs | ||
| } | ||
| MIRRORS='a b' | ||
| f() { | ||
| for m in $MIRRORS; do | ||
| echo "m $m" | ||
| local pkgdest="foo" | ||
| if [ ! -e "$pkgdest" ]; then continue; fi | ||
| pkgs_to_get="$(download_debs "$m" "$pkgdest" $pkgs_to_get 5>&1 1>&6)" | ||
| if [ -z "$pkgs_to_get" ]; then break; fi | ||
| done 6>&1 | ||
| echo done | ||
| } | ||
| f |
0 comments on commit
400a222