Re: Testing if two files are on the same file system

2017-10-19 Thread Geoff Clare
Joerg Schilling wrote, on 19 Oct 2017: > > You need to look at the 2nd line and you may use the '%' sign to synchronize > fields and you may even do this: > > /usr/xpg4/bin/df -P /etc/passwd /etc/hosts > Dateisystem 512-Blöcke Belegt

Re: Testing if two files are on the same file system

2017-10-19 Thread Joerg Wunsch
As Martijn Dekker wrote: > There is another, less unlikely problem, though: a file system could be > mounted on a directory with a name containing a newline, which would > break line-based parsing. Pipe the output of df -P through "tail -n +2 | head -1". :-) That way, you don't have to care

Re: Testing if two files are on the same file system

2017-10-19 Thread Martijn Dekker
Op 18-10-17 om 16:11 schreef Geoff Clare: > After the filesystem name there are four numeric fields with a trailing '%' > on the fourth. Treating this as the terminator for the filesystem name > ought to be good enough in practice. It would only not work in the > extremely unlikely event that a

Re: Testing if two files are on the same file system

2017-10-19 Thread Martijn Dekker
Op 19-10-17 om 13:12 schreef Joerg Schilling: > No, the first field usually is the background storage, it may be the filesytem > name in some cases. Whatever it technically may be, the POSIX spec calls it a file system name, so I'm using that term to be consistent with it.

[1003.1(2016)/Issue7+TC2 0001151]: Introduce new signal SIGWINCH and functions tcsetsize(), tcgetsize() to get/set terminal window size

2017-10-19 Thread Austin Group Bug Tracker
The following issue has been RESOLVED. == http://austingroupbugs.net/view.php?id=1151 == Reported By:Clausecker Assigned To:

[1003.1(2016)/Issue7+TC2 0001151]: Introduce new signal SIGWINCH and functions tcsetsize(), tcgetsize() to get/set terminal window size

2017-10-19 Thread Austin Group Bug Tracker
A NOTE has been added to this issue. == http://austingroupbugs.net/view.php?id=1151 == Reported By:Clausecker Assigned To:

Re: Testing if two files are on the same file system

2017-10-19 Thread Joerg Schilling
Martijn Dekker wrote: > Is there a way, using POSIX shell and utilities, to reliably test if two > files are on the same file system? It seems like a basic feature that > the shell should have access to, so I'd like to add it to the modernish > shell library. > > The only POSIX

Re: Testing if two files are on the same file system

2017-10-19 Thread Martijn Dekker
Op 19-10-17 om 15:14 schreef Joerg Wunsch: > As Martijn Dekker wrote: > >> There is another, less unlikely problem, though: a file system could be >> mounted on a directory with a name containing a newline, which would >> break line-based parsing. > > Pipe the output of df -P through "tail -n +2

[1003.1(2013)/Issue7+TC1 0001053]: Add a "size" mode to stty(1)

2017-10-19 Thread Austin Group Bug Tracker
A NOTE has been added to this issue. == http://austingroupbugs.net/view.php?id=1053 == Reported By:steffen Assigned To:

[1003.1(2013)/Issue7+TC1 0001053]: Add a "size" mode to stty(1)

2017-10-19 Thread Austin Group Bug Tracker
The following issue has been RESOLVED. == http://austingroupbugs.net/view.php?id=1053 == Reported By:steffen Assigned To: