Skip to content

JJ/raku-sys-chown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sys::Chown Test distro

A port of Perl's File::Chown to Raku, using Lizmat's Butterfly project

Installing

The usual

zef install Sys::Chown

Running

use Sys::Chown;

# chown by user-/group names
chown <foo bar baz>, "ujang", "ujang";
# numeric ID's still work
chown ["myfile.txt"], -1, 500;
# option: use a reference file's owner/group instead of specifying directly,
# like the Unix chown command's --reference=FILE.
chown(["mypasswd"], {ref => "/etc/passwd"} );

chown(<foo bar>, "1001:1001");

License

Licensed under the Artistic 2.0 License (the same as Raku itself).

About

Porting Perl's chown to Raku

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages