X-Git-Url: http://www.git.stargrave.org/?p=torn.git;a=blobdiff_plain;f=torn.zsh;fp=torn.zsh;h=fe45db94259bec0f5a692cd76c68956a5a384553;hp=11d0fccfdc7920a209876bb21735d8327b5faa37;hb=9178edf64c25820294e420468dbd9a4138b31428;hpb=aaf61acdbaa2b4489317f39012140fa23dda7978 diff --git a/torn.zsh b/torn.zsh index 11d0fcc..fe45db9 100755 --- a/torn.zsh +++ b/torn.zsh @@ -42,7 +42,7 @@ tornt() { local rusL=( ж ч ш щ я ю Ж Ч Ш Щ Я Ю) local engL=(zh ch sh sch ja ju Zh Ch Sh Sch Ja Ju) for i ({1..${#rusL}}) eval n=\${n:gs/${rusL[$i]}/${engL[$i]}} - print $n + print -- $n } tornm() { @@ -59,10 +59,10 @@ tornm() { n=${n:gs/&/and} [[ $n =~ "\." ]] && n=${n:r}.${(L)n:e} [[ $n =~ "^([[:digit:]]+)[-.]_*(.+)$" ]] && n="$match[1].$match[2]" - print $n + print -- $n } local n=${1:t} n=`tornm $n` n=`tornt $n` -print ${1:h}/$n +print -- ${1:h}/$n