Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 165052 Details for
Bug 138792
dobin etc. should automatically die on failure
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
traps.bash
traps.bash (text/plain), 541 bytes, created by
David Leverton
on 2008-09-09 19:52:46 UTC
(
hide
)
Description:
traps.bash
Filename:
MIME Type:
Creator:
David Leverton
Created:
2008-09-09 19:52:46 UTC
Size:
541 bytes
patch
obsolete
>#!/usr/bin/env bash > >die() { > echo "$@" >&2 >} > >command_failed() { > die "command failed" >} > >trap command_failed ERR >set -E > >echo The trap should activate here.... >epatch >echo The trap should have activated above > >silly() { > epatch > [[ $(hostname) == [[:lower:]]* ]] >} > >echo The trap should activate here.... >silly >echo The trap should have activated above > >echo The trap will /not/ activate here.... >if silly; then > echo "Your hostname starts with a lower-case letter!" >else > echo "You suck" >fi >echo The trap should not have activated above >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 138792
:
90655
|
95641
| 165052 |
170853