Re: Bash and/or find question

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

 



>Because "&&" is a shell construct and you're giving it to test as an argument.

I realize that && is a shell construct. As I mentioned in the original post, if I key in :
    test -e ../two/./x.java && diff ./x.java ../two/./x.java
at a command prompt, everything works as expected. The shell separates the test from the diff and only executes the diff if the test is true.

My question is why when find submits the same string to the shell that it comes out with an error. 
Maybe you explained it and I just don't get it. 
What is the difference between me keying it into a command line and find submitting the same thing to a shell?

Bill Gradwohl
(817) 224-9400 x211
www.ycc.com
SPAMstomper Protected Email


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux