Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
エイリアスを使用するxargsコマンドを実行しようとしています。検索はこれを思いついた
alias gojk 'stsq \!:1 | xargs -t -0 -I {} tcsh -c source ~/.tcshrc.user;myset {}'
しかし、それは戻ります
Bad ! arg selector
バリエーションが返されます
source: too few arguments.
tcsh はまだ ! を評価します。引用符内の文字。その前にバックスラッシュを付ける必要があります。
tcsh の部分をスクリプトにして、引数を渡し、これを機能させることをお勧めします。次に、xargs を使用してスクリプトを呼び出します。
-m次のように、フラグを使用して、起動時にtcsh読み取らせます。~/.tcshrc
-m
tcsh
~/.tcshrc
... | xargs -t0 -I {} tcsh -m -c "<alias> {}"