On Thu, Jan 16, 2025 at 13:18:53 +0200, Anssi Saari wrote:
> Urs Thuermann <u...@isnogud.escape.de> writes:
> > mount | fgrep -vf <(awk '/^nodev/{print $2}' /proc/filesystems)
> 
> Thanks. It has the benefit of not showing autofs, for example. But how
> to quote that for an alias?

The simplest way is *not* to use an alias.  Use a function instead.

myfunc() { mount | fgrep -vf <(awk '/^nodev/{print $2}' /proc/filesystems); }

Aliases are ancient, and weird, and have limitations on what they can
do.  (They also have bizarre magical powers which nothing else can
achieve, but it's best not to go down that road.)

When in doubt, use a function instead of an alias.

Reply via email to