Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Useful zsh/datetime things
- X-seq: zsh-users 6682
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Useful zsh/datetime things
- Date: Fri, 10 Oct 2003 04:40:52 +0000
- In-reply-to: <20031009174926.GA12280@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <1031009172754.ZM10491@xxxxxxxxxxxxxxxxxxxxxxx> <20031009174926.GA12280@xxxxxxxxxxx>
On Oct 9, 5:49pm, Phil Pennock wrote:
}
} % stat -H foo -s .
} % print -l ${(kv)foo} | pr -at2
} % print -l "${(@kv)foo}" | pr -at2
}
} The second command doesn't give proper results, since there is no value
} shown for the key 'link', so after that things are mis-placed.
}
} But why is there not a blank line?
Because an unquoted empty string always disappears. It just happens that
the easiest way to get an unquoted empty string is to expand an unset or
empty-valued parameter (the former assuming setopt no_unset).
"Not split" (in the sh_word_split sense) is not equivalent to "quoted".
You'd get strange effects if it didn't work this way; e.g., $* would
always substitute an empty string, even when $# == 0.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author