Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Sep 2023 07:09:03 +0200
From:      Ralf Mardorf <ralf-mardorf@riseup.net>
To:        questions@freebsd.org
Subject:   Re: cut off last lines of a document
Message-ID:  <4062326d85f9e9988b08ab49df4a59e3148fea76.camel@riseup.net>
In-Reply-To: <bybyzt4obn2by3bn6gm7k72wy62kn2mlmaubnsk4o7wb62ulkj@hfdamyqm2qp4>
References:  <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> <de480aeb-3f8c-4be2-8162-6d9f033f201a@nebelschwaden.de> <bybyzt4obn2by3bn6gm7k72wy62kn2mlmaubnsk4o7wb62ulkj@hfdamyqm2qp4>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

to write a super portable script the best way would be to check what
operating system is used and to check the version of the used shell.

  case in FreeBSD) command=3Dfoo;; *) command=3Dbar;; esac

When using busybox there are a few extra pitfalls.

Regards,
Ralf



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4062326d85f9e9988b08ab49df4a59e3148fea76.camel>