Re: [opensuse] alias failure



On 2007/07/28 14:46 (GMT-0700) joe apparently typed:

Randall R Schulz wrote:

Aliases don't take positional parameters, at least not in BASH (I think
they do in the Csh family, if I recall correctly). They simply expanded
verbatim in front of any arguments you give, so if you invoke it
with "/dev/hda7" as an argument, it's like running this command:

Yes, Randall is right. I took a lazy shortcut and did this instead:

for i in `cat drives`; do tune2fs -l $i | grep volume; done

which of course worked....

Not for me. I put that in a script, and got 'cat: drives: No such file or
directory', and get a syntax error unexpected token from an alias. :-(
--
"All scripture is God-breathed and is useful for teaching,
rebuking, correcting, and training in righteoousness."
2 Timothy 3:16 NIV

Team OS/2 ** Reg. Linux User #211409

Felix Miata *** http://mrmazda.no-ip.com/
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Are sysctl(8) values useful for measuring system resource consumption?
    ... the "developer experience," what resources are thus consumed, and figure ... script that essentailly acts as a bit of "scaffolding" around time; ... the script sets things up to invoke timewith the "-l" flag (so we ...
    (freebsd-performance)
  • Re: problem in invoking shell script through a C++ thread
    ... I am using Pthreads to invoke shell scripts. ... How do you know that the script didn't get invoked? ... getId.getString<< endl; ...
    (comp.sys.hp.hpux)
  • Re: My perl script to run arbitrary tasks in parallel
    ... you don't invoke it a few times. ... You can give small ones the .JPG extension as opposed to .jpg. ... I have a big perl script for creating nice HTML indices of directory ... GIF animation based video thumbnails, html index files, RSS feeds etc. ...
    (comp.lang.perl.misc)
  • Monitor file change
    ... Is there a way I can monitor a file, and if it's changed/updated by other ... invoke a certain script immediately. ... Department of Physics and Astronomy ...
    (RedHat)
  • Re: Testing Global Output Variable Value
    ... When I execute the ActiveX object step I get a VBScript error saying "Variable uses an automation type not supported in VBScript." ... Within the ActiveX Script Task properties, Package Object Browser under Global Variables I am able to see the output variable "gMsgBox" that I created in Execute SQL Task. ... Within Execute SQL Task my SQL Statement verbatim is: ...
    (microsoft.public.sqlserver.dts)