umask

Björnke von Gierke bvg at mac.com
Mon Jan 17 08:47:44 EST 2011


I agree that david should try it himself, especially as it's so easy to test?
Note that he meant the umask within LC, not the terminal command.

on mouseUp
   set the umask to 777
   ask file ""
   put "boo" into url ("file:" & it)
end mouseUp

Result: umask doesn't change permissions of files created by lc on mac os x

On 17 Jan 2011, at 08:44, Thierry wrote:

> 
> Le 16 janv. 2011 à 23:00, David Bovill a écrit :
> 
>> Does anyone know if the umask works on OSX / anymore - I used it years ago
>> on Linux, but no idea if it works on OSX (dictionary say it dos not).
> 
> Well, better  try all these commands in a terminal and
> you'll know quickly :
> 
> in a terminal do :
> 
>> echo 123 > test
> 
>> umask 666
>> echo 345 > test2
> 
>> ls -l test*
> -rw-rw-rw-   1 tdz  staff     4 17 jan 08:38 test
> ----------   1 tdz  staff     4 17 jan 08:38 test2
> 
> I did this in a shell with the terminal app., and on a Mac !
> So ,the answer is YES :)
> 
> MacOsX is a Unix based system, most of the shell commands
> are there... with subtle differences from Unix to Unix to Linux versions,
> but most of the time, it just works the same.
> 
> Regards,
> Thierry
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list