Rewrite redirect handling code with nested lists.

New ll_addh to add items to the head of a nested list (use with care!).
This commit is contained in:
Uriel 2009-03-14 00:28:34 +01:00
parent 673bdaf664
commit 588c035b3b
3 changed files with 17 additions and 14 deletions

View file

@ -157,6 +157,13 @@ fn ll_add {
$_l=$*(2-)
$1=( $$1 $_l )
}
# Add to the head: dangerous if you shrink list by hand!
fn ll_addh {
_l=$1^_^$#$1
$_l=$*(2-)
$1=( $_l $$1 )
}
NEW_LINE='
'