search
LoginSignup
0

More than 5 years have passed since last update.

posted at

.bashrc内で宣言するaliasで引数を使った物を宣言する場合

ダメな例

alias php_grep='grep -rnIH --color=auto --include=*.php $@ *'

良い例

function php_grep () { grep -rnIH --color=auto --include=*.php $@ *; }

functionを使います

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
0