Testing execute permission from csh

Paul V O'Neill pvo at uther.CS.ORST.EDU
Sat May 6 16:33:15 AEST 1989


In article <19486 at adm.BRL.MIL> Kemp at DOCKMASTER.NCSC.MIL writes:
>
>I want to change all the files to have world read permission, and all
>the executables to have world execute.  I tried the following in csh as
>root:
>
> # foreach f (*)
> ? if -x $f chmod o+x $f
> ? end
>
>     (I am using SunOS 4.0.1, if it matters.)
>

Why test?
>From the 4.0 man pages:

     X    Give execute permission if the file is a  directory  or
          if  there  is  execute  permission for one of the other
          user classes.

Try 		# chmod o+X *


Paul O'Neill                 pvo at oce.orst.edu
Coastal Imaging Lab
OSU--Oceanography
Corvallis, OR  97331         503-754-3251



More information about the Comp.unix.questions mailing list