Re: [9fans] rc expression question

2017-03-31 Thread Skip Tavakkolian
something like this? % xxx=`{echo test '-e '^$pathnames^' -o' 1 '!=' 1} % $xxx On Fri, Mar 31, 2017 at 5:31 PM dexen deVries wrote: > given > pathnames = ( foo/a.txt bar/b.txt baz/c.txt ) > > how do i construct arguments to test(1) that test for existence of > those files in one go? > > wanted

[9fans] rc expression question

2017-03-31 Thread dexen deVries
given pathnames = ( foo/a.txt bar/b.txt baz/c.txt ) how do i construct arguments to test(1) that test for existence of those files in one go? wanted: test -e foo/a.txt -o -e bar/b.txt -o -e baz/c.txt assuming the pathnames may contain space characters.