Changeset 15883 for lang/shellscript

Show
Ignore:
Timestamp:
07/16/08 09:56:09 (4 months ago)
Author:
cho45
Message:

たぶんこれで全部 zsh builtins だけで完結:

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/shellscript/blosxom.zsh/blosxom.zsh

    r638 r15883  
    1 #!/usr/bin/zsh 
    2 # vim:ft=sh: 
     1#!/usr/bin/env zsh 
     2# vim:ft=zsh: 
    33 
    44# array とかはそのまま関数に渡せない? 
     
    1919 
    2020function template () { 
    21         template=$(cat $1) 
     21        template=$(<$1) 
    2222        typeset -A variables 
    2323        variables=() 
     
    4545        stat -H st +mtime $f 
    4646        strftime -s date "%Y-%m-%d %H:%M:%S" $st[mtime] 
    47         content=$(cat $f) 
     47        content=$(<$f) 
    4848        : ${(A)content::=${(f)content}} 
    4949        title=$content[0]