Re: [opensuse] alias failure

2007-07-29 Thread Dmitry
On Sunday 29 July 2007 03:32, Felix Miata wrote: FM I'm having no luck figuring out why FM alias Vol='tune2fs -l $1 | grep volume' FM FM causes a usage message when 'Vol /dev/hda7' is run. Can anyone explain what FM I'm doing wrong, or provide a better method to discover a volume label? I

Re: [opensuse] alias failure

2007-07-29 Thread Randall R Schulz
On Saturday 28 July 2007 23:57, Dmitry wrote: On Sunday 29 July 2007 03:32, Felix Miata wrote: FM I'm having no luck figuring out why FM alias Vol='tune2fs -l $1 | grep volume' FM FM causes a usage message when 'Vol /dev/hda7' is run. Can anyone explain what FM I'm doing wrong, or provide a

Re: [opensuse] alias failure

2007-07-29 Thread James Knott
Dmitry wrote: On Sunday 29 July 2007 03:32, Felix Miata wrote: FM I'm having no luck figuring out why FM alias Vol='tune2fs -l $1 | grep volume' FM FM causes a usage message when 'Vol /dev/hda7' is run. Can anyone explain what FM I'm doing wrong, or provide a better method to discover a

Re: [opensuse] alias failure

2007-07-29 Thread Dmitry
On Sunday 29 July 2007 23:42, James Knott wrote: JK FM I'm having no luck figuring out why JK FM alias Vol='tune2fs -l $1 | grep volume' JK FM JK FM causes a usage message when 'Vol /dev/hda7' is run. Can anyone explain JK FM what FM I'm doing wrong, or provide a better method to discover

Re: [opensuse] alias failure

2007-07-29 Thread Randall R Schulz
On Sunday 29 July 2007 11:43, Dmitry wrote: ... For example : alias test='echo $1 | grep qwerty; echo $1'; This is never a sensible alias. I'll say it again, positional parameters in aliases are not what they seem to be. They are not substituted with the parameters used when the alias is

[opensuse] alias failure

2007-07-28 Thread Felix Miata
I'm having no luck figuring out why alias Vol='tune2fs -l $1 | grep volume' causes a usage message when 'Vol /dev/hda7' is run. Can anyone explain what I'm doing wrong, or provide a better method to discover a volume label? -- All scripture is God-breathed and is useful for teaching, rebuking,

Re: [opensuse] alias failure

2007-07-28 Thread joe
Felix Miata wrote: I'm having no luck figuring out why alias Vol='tune2fs -l $1 | grep volume' causes a usage message when 'Vol /dev/hda7' is run. Can anyone explain what I'm doing wrong, or provide a better method to discover a volume label? That works fine here - I'd be curious to

Re: [opensuse] alias failure

2007-07-28 Thread Randall R Schulz
On Saturday 28 July 2007 13:32, Felix Miata wrote: I'm having no luck figuring out why alias Vol='tune2fs -l $1 | grep volume' 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

Re: [opensuse] alias failure

2007-07-28 Thread joe
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

Re: [opensuse] alias failure

2007-07-28 Thread Felix Miata
On 2007/07/28 13:58 (GMT-0700) Randall R Schulz apparently typed: On Saturday 28 July 2007 13:32, Felix Miata wrote: I'm having no luck figuring out why alias Vol='tune2fs -l $1 | grep volume' Aliases don't take positional parameters, at least not in BASH (I think So it's just an

Re: [opensuse] alias failure

2007-07-28 Thread Felix Miata
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

Re: [opensuse] alias failure

2007-07-28 Thread Felix Miata
On 2007/07/28 13:42 (GMT-0700) joe apparently typed: Felix Miata wrote: I'm having no luck figuring out why alias Vol='tune2fs -l $1 | grep volume' causes a usage message when 'Vol /dev/hda7' is run. Can anyone explain what I'm doing wrong, or provide a better method to discover a volume

Re: [opensuse] alias failure

2007-07-28 Thread Randall R Schulz
On Saturday 28 July 2007 16:39, Felix Miata wrote: On 2007/07/28 13:58 (GMT-0700) Randall R Schulz apparently typed: On Saturday 28 July 2007 13:32, Felix Miata wrote: I'm having no luck figuring out why alias Vol='tune2fs -l $1 | grep volume' Aliases don't take positional parameters,

Re: [opensuse] alias failure

2007-07-28 Thread joe
Felix Miata wrote: 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,