zsh入門 パート2 ..
[2ch|▼Menu]
606:名無しさん@お腹いっぱい。
03/09/06 03:21
>>581
echo ${(P)hoge} ${(P)${hoge}}

zshexpnのParameter Expansion FlagsのPのところに
そのものずばりの例がある。

| P This forces the value of the parameter name to be interpreted as
| a further parameter name, whose value will be used where appro-
| priate. If used with a nested parameter or command substitution,
| the result of that will be taken as a parameter name in the same
| way. For example, if you have `foo=bar' and `bar=baz', the
| strings ${(P)foo}, ${(P)${foo}}, and ${(P)$(echo bar)} will be
| expanded to `baz'.


次ページ
続きを表示
1を表示
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
暇つぶし2ch

5337日前に更新/219 KB
担当:undef