From: Daniel Carrera Date: 2003-09-01T07:51:55+09:00 Subject: Re: `echo %!(*` I'm not sure I understand what you're asking about backtick interpolation. Can you give me a simple example of what you'd like the backtick to do so I understand beter? As for renaming a file, would File.rename do what you want? : dcarrera ~ $ ls *.mp3 BadlyNamedFile.mp3 dcarrera ~ $ ruby -e 'File.rename("BadlyNamedFile.mp3", "NewName.mp3")' dcarrera ~ $ ls *.mp3 NewName.mp3 On Mon, Sep 01, 2003 at 07:46:24AM +0900, Tom Felker wrote: > Hello all, > > Does anyone know a way to do backtick interpolation while protecting the > command's arguments from the shell, or bypassing the shell entirely? I'm > writing a script to rename badly named music files, and I have to pass the > bad name to vorbiscomment and read it's output. > > Apparently Kernel::` is a method, but I can't figure out how to call it > with my own arguments. Is there a non-punctuation name for it? This > would only be useful if it could accept an argument list as an array and > not use the shell, as Kernel::system does. > > Thanks, > -- > Tom Felker, > - Stop fiddling with the volume knob. > > I'm not comfortable with an idea that's not constantly being challenged. > -- Daniel Carrera, Math PhD student at UMD. PGP KeyID: 9AF77A88 .-"~~~"-. / O O \ ATTENTION ALL PASCAL USERS: : s : \ \___/ / To commemorate the anniversary of Blaise Pascal's `-.___.-' birth (today) all your programs will run at half speed.