Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jun 2018 18:33:44 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
Cc:        mayuresh@kathe.in, freebsd-questions@freebsd.org
Subject:   Re: mailx anyone?
Message-ID:  <20180614183344.2eebdc67.freebsd@edvax.de>
In-Reply-To: <44po0uyqrp.fsf@lowell-desk.lan>
References:  <70677739ac5a415c5004ea551a7458b0@kathe.in> <c458985f-ecc5-0c20-df8a-a106886d8df6@FreeBSD.org> <7b3cc5ce196fd216ccdd76fb340a2492@kathe.in> <20180613204623.3705ae36.freebsd@edvax.de> <44po0uyqrp.fsf@lowell-desk.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 13 Jun 2018 23:46:02 -0400, Lowell Gilbert wrote:
> Polytropon <freebsd@edvax.de> writes:
> 
> > On Wed, 13 Jun 2018 23:13:13 +0530, Mayuresh Kathe wrote:
> >> On 2018-06-13 09:37 PM, Matthew Seaman wrote:
> >> > On 13/06/2018 16:48, Mayuresh Kathe wrote:
> >> >> does anyone on this list still use mailx?
> >> >> if not regularly, at-least intermittently?
> >> > 
> >> > Given that mail(1) is part of the FreeBSD base system and is pretty
> >> > much the same thing as mailx(1), then probably not that many will use
> >> > mailx(1).  mail(1) is something I do use intermittently.
> >> 
> >> mailx is just a link to mail.  :-)
> >
> > It is actually the same file; check with "ls -li". :-)
> 
> Which doesn't mean it has the same behaviour if called by different names.
> [See: 'w' vs. 'uptime']

Fully correct. On historical FreeBSD, there was a directory
full of programs (almost) all the same size, (almost) all with
different names, (almost) all pointing to the same inode entry;
that was /rescue/*. Depending on argv[0], the same (!) program
would act totally differently.

It is not uncommon on UNIX system to "select" program functionality
by program _invocation_, either via hardlink or via symlink. In
some cases, it's just different names for the same program with
the same behaviour, for providing backward compatibility, mostly
for scripts.



> In this case, though, I thought they were supposed to behave the same
> way in either case, and I can't find any reason to think otherwise.

According to "man mail", there is no difference in behaviour
listed.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180614183344.2eebdc67.freebsd>