mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
alias: print error msgs to stderr
This commit is contained in:
parent
3e473b9f37
commit
80b2eb94f1
1 changed files with 2 additions and 2 deletions
|
@ -35,10 +35,10 @@ function alias --description 'Creates a function wrapping a command'
|
|||
|
||||
# sanity check
|
||||
if test -z "$name"
|
||||
printf ( _ "%s: Name cannot be empty\n") alias
|
||||
printf ( _ "%s: Name cannot be empty\n") alias >&2
|
||||
return 1
|
||||
else if test -z "$body"
|
||||
printf ( _ "%s: Body cannot be empty\n") alias
|
||||
printf ( _ "%s: Body cannot be empty\n") alias >&2
|
||||
return 1
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue