-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
posix: use
tail -1
, not tail -n 1
, prefer gsed
for Solaris compat
Non-XPG4 version of `tail` fails if you call it as `tail -n 1`, but `tail -1` works everywhere and is portable. ``` % ssh solaris Last login: Sun Oct 20 12:20:56 2024 from 192.168.64.1 Oracle Solaris 11.4.42.111.0 Assembled December 2021 root@solaris:~# tail -n 1 .profile usage: tail [+/-[n][lbc][f]] [file] tail [+/-[n][l][r|f]] [file] root@solaris:~# tail -1 .profile root@solaris:~# head -n 1 .profile root@solaris:~# head -1 .profile root@solaris:~# /usr/xpg4/bin/tail -n 1 .profile ``` Signed-off-by: Yury V. Zaytsev <[email protected]>
- Loading branch information
Showing
5 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters