Implement test for reallocation.
[SquirrelJME.git] / utils-dev / lastarg.sh
blobe5441584a01661266e8f1d749319ff9d42932260
1 #!/bin/sh
2 # ---------------------------------------------------------------------------
3 # Multi-Phasic Applications: SquirrelJME
4 # Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 # Copyright (C) Multi-Phasic Applications <multiphasicapps.net>
6 # ---------------------------------------------------------------------------
7 # SquirrelJME is under the GNU General Public License v3+, or later.
8 # See license.mkd for licensing and copyright information.
9 # ---------------------------------------------------------------------------
10 # DESCRIPTION: Returns the last argument.
12 # Force C locale
13 export LC_ALL=C
15 # Directory of this script
16 __exedir="$(dirname -- "$0")"
18 # Shift down everything
19 while [ "$#" -gt 1 ]
21 shift
22 done
24 # Echo it
25 echo "$1"