bash: accessing the last positional parameter?
From: Daniel Ganek (ganek_at_attbi.com)
Date: 08/21/03
- Next message: Julian Bradfield: "Re: bash: accessing the last positional parameter?"
- Previous message: Bit Twister: "Re: xterm Xt error: Can't open display"
- Next in thread: Julian Bradfield: "Re: bash: accessing the last positional parameter?"
- Reply: Julian Bradfield: "Re: bash: accessing the last positional parameter?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 21 Aug 2003 13:25:29 -0400
Consider:
$ set a b c
$ echo $#
3
$ echo $3
c
$ echo ${$#}
13442
What's going on?
All I want to do is access the last positional parameter.
/dan
- Next message: Julian Bradfield: "Re: bash: accessing the last positional parameter?"
- Previous message: Bit Twister: "Re: xterm Xt error: Can't open display"
- Next in thread: Julian Bradfield: "Re: bash: accessing the last positional parameter?"
- Reply: Julian Bradfield: "Re: bash: accessing the last positional parameter?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]