#ruby-lang - Sun 4 Mar 2007 between 02:38 and 03:08

NY Lost Funds



Rich_MorinI'm on a Mac OS X system, trying to set some dir and file modes. I do File.umask(0002), then File.chmod(0775, path), but I'm getting a result of rwxrwx---. Help?
erikhumask shouldn't effect a hard chmod
slyphonyeah
umask only effects new file creation
where the file-mode setting is implicit
erikhstill, 0775 isn't rwxrwx----
slyphontrue
the result is orthogonal to the umask setting
Rich_MorinHmm. You're quite right about umask. I was off on a siding...
erikhI can't recreate this on OS X
Rich_Morin: are you chmodding a symlink?
slyphongood question
Rich_MorinWell, part of the path is a symlink, but not the node I'm trying to change.
erikhhmm.
Rich_Morin: try replacing chmod with lchmod
Rich_Morinor perhaps Cd'ing into the dir. WIll do
erikhlikely
Rich_MorinWell, that wasn't it. Here's a code snippet and some output, if you care to look: http://pastie.caboo.se/44556
slyphonthat's not how case works
you can't do when File.directory?(path)
Rich_MorinYou're quite right. sigh
thanks
slyphonsure :)
erikhwhere does Dir's style of globbing come from, anyways?
it's wickedly powerful.
slyphondunno, always thought it was like the shell, actually
you mean the '**' ?
Rich_MorinThe ** syntax is very handy
erikhI would agree except for **
slyphonyeah, i think that's a ksh thing
zsh has it too
erikhah!
slyphonand bash if you have 'extglob' set
actionerikh tweaks his profile
erikhtweaks his profile
slyphon:)
Rich_MorinWell, ksh predates zsh, so it may have come from David Korn
dejisodI want to change my last name to Korn
Rich_Morin?
slyphonyeah, zsh pulls a lot of features from ksh
dejisodmaybe go a step further and change it to Corn

Page: 2 9 16 23 30 37 44 51 58 

IrcArchive

NY Lost Funds