Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 170853 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]
trap example from bug 211000, with && and || demonstrations
trap_err.sh (text/plain), 193 bytes, created by
Zac Medico
on 2008-11-05 22:18:33 UTC
(
hide
)
Description:
trap example from bug 211000, with && and || demonstrations
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2008-11-05 22:18:33 UTC
Size:
193 bytes
patch
obsolete
>#!/usr/bin/env bash > >die() { > echo "$@" >&2 >} > >command_failed() { > die "command failed" >} > >trap command_failed ERR > >false && echo this does not execute >false || echo this code executes > >epatch
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