[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: asking for a better way to implement this
From: |
Chris F.A. Johnson |
Subject: |
Re: asking for a better way to implement this |
Date: |
Sun, 26 Sep 2010 18:09:16 -0400 (EDT) |
User-agent: |
Alpine 2.00 (LMD 1167 2008-08-23) |
On Sun, 26 Sep 2010, Christopher Roy Bratusek wrote:
btw. How can I remove the last arguement ${!#} ?
I tried args=${@:-${!#}} but that won't work.
args=( "$@" )
unset args[$#-1]
set -- "${args[@]}"
--
Chris F.A. Johnson, <http://cfajohnson.com>
Author:
Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
- asking for a better way to implement this, Christopher Roy Bratusek, 2010/09/26
- Re: asking for a better way to implement this, Ken Irving, 2010/09/26
- Re: asking for a better way to implement this, Dennis Williamson, 2010/09/26
- Re: asking for a better way to implement this, Christopher Roy Bratusek, 2010/09/27
- Re: asking for a better way to implement this, Greg Wooledge, 2010/09/27
- Re: asking for a better way to implement this, Chris F.A. Johnson, 2010/09/27
- Re: asking for a better way to implement this, Christopher Roy Bratusek, 2010/09/27
- Re: asking for a better way to implement this, Andre Majorel, 2010/09/27
- Re: asking for a better way to implement this, Andreas Schwab, 2010/09/28
Re: asking for a better way to implement this, Andreas Schwab, 2010/09/26