Re: [opensuse] alias failure
- From: Felix Miata <mrmazda@xxxxxx>
- Date: Sat, 28 Jul 2007 19:54:15 -0400
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
- Follow-Ups:
- Re: [opensuse] alias failure
- From: joe
- Re: [opensuse] alias failure
- References:
- [opensuse] alias failure
- From: Felix Miata
- Re: [opensuse] alias failure
- From: Randall R Schulz
- Re: [opensuse] alias failure
- From: joe
- [opensuse] alias failure
- Prev by Date: Re: [opensuse] alias failure
- Next by Date: Re: [opensuse] alias failure
- Previous by thread: Re: [opensuse] alias failure
- Next by thread: Re: [opensuse] alias failure
- Index(es):
Relevant Pages
|