help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Firing a shell function when I change directories


From: Greg Wooledge
Subject: Re: [Help-bash] Firing a shell function when I change directories
Date: Fri, 7 Dec 2018 11:29:30 -0500
User-agent: NeoMutt/20170113 (1.7.2)

On Fri, Dec 07, 2018 at 08:23:22AM -0800, Maxim Kupfer wrote:
> source script 1 || source script 2
> 
> This is throwing an error though when script 2 should be run, it says: No
> such file or directory, but the second script runs fine. How do I make this
> silent so that it doesn't give an error?

source script1 2>/dev/null || source script2



reply via email to

[Prev in Thread] Current Thread [Next in Thread]