On Tue, Nov 10, 2009 at 01:46:05PM +0200, Vallo Kallaste <[email protected]> wrote:
> Excerpt from the manual: > /--/ > For example, the predefined alias redirect='command exec' prevents a > script from terminating when an invalid redirection is given. > /--/ > Hmm, at least redirect really gives the ability to catch redirection failure: $ exec 3>>/non/a && exec 2>&3 || echo NOK -su: /non/a: cannot create [No such file or directory] $ redirect 3>>/non/a && exec 2>&3 || echo NOK -su: /non/a: cannot create [No such file or directory] NOK -- Vallo Kallaste _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
