魚の殻の公式文書はthis exampleです。私はcase '*'
理解魚のシェルスクリプトの大文字小文字のパラメータとして ' - *'の意味は何ですか?
function mkdir -d "Create a directory and set CWD"
command mkdir $argv
if test $status = 0
switch $argv[(count $argv)]
case '-*'
case '*'
cd $argv[(count $argv)]
return
end
end
end
は、C++のswitch文でdefault:
のようなものです。
case '-*'
の意味は?