Re: netbsd /sparc
From: Frederick Bruckman (fredb_at_immanent.net)
Date: 09/29/04
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 29 Sep 2004 12:25:17 -0500
In article <brCdnTi9HMZEccfcRVn-sw@giganews.com>,
fredb@immanent.net (Frederick Bruckman) writes:
> In article <rnzn3ajc7x.fsf@cindy.panacea.null.org>,
> Joel Reicher <joel@panacea.null.org> writes:
>>
>> Yes, sorry about that -- it was not a good suggestion. I have su
>> permanently aliased to su -m, which might be one of the reasons it
>> slipped my mind.
>
> I have "su" being a function, so "su" without arguments (only) is
> "su -m":
>
> # functions su
> su() {
> if [ -z "$*" ]
> then
> command su -m
> else
> command su "$@"
> fi
> }
I just realized that that could be a lot simpler:
# functions su
su() {
command su "${@:--m}"
}
Frederick
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]