The R Project SVN R

Rev

Rev 4580 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4580 Rev 7218
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
 
2
 
3
# ${R_HOME}/bin/filename
3
# ${R_HOME}/bin/filename
4
 
4
 
5
#cc Using 'found' ensures that at least an empty string is returned;
5
## Using `found' ensures that at least an empty string is returned;
6
#cc without,  system.file() returns   character(0) if nothing is found.
6
## without, system.file() returns character(0) if nothing is found.
7
 
7
 
8
found=
8
found=
9
for f in $*
9
for f in ${*}; do
10
do
-
 
11
 if [ -r $f ];then echo "$f"; found=1
10
  if [ -r $f ]; then echo "$f"; found=1; fi
12
 fi
-
 
13
done
11
done
14
test -z "$found" && echo
12
test -z "$found" && echo
15
 
13
 
-
 
14
### Local Variables: ***
-
 
15
### mode: sh ***
-
 
16
### sh-indentation: 2 ***
-
 
17
### End: ***