blockdev.exe is missing in util-linux. How to determine block device size in bash?

2020-11-28 Thread Basin Ilya via Cygwin
Hi list. 
Actually I have nothing to add to the subject. blockdev.exe missing in 
util-linux. How to determine block device size in bash?
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


login shell binary outside of /bin

2021-07-01 Thread Basin Ilya via Cygwin
Hi
I compiled bash 5.1 and installed it to /usr/local

If I try to use it as a login shell it fails to launch programs while sourcing 
/etc/profile. If I copy the binary to /bin it works. If after successful login 
I launch `/usr/local/bin/bash5 -login` again it works. If I copy the official 
bash4 to /usr/local/bin and try to do the initial login it fails just like 
bash5.

Bad:

C:\cygwin\bin>C:\cygwin\usr\local\bin\bash5 -login
  0 [main] bash5 674 dofork: child -1 - forked process 20540 died 
unexpectedly, retry 0, exit code 0xC135, errno 11
bash5: fork: retry: Resource temporarily unavailable
1023667 [main] bash5 674 dofork: child -1 - forked process 35708 died 
unexpectedly, retry 0, exit code 0xC135, errno 11
bash5: fork: retry: Resource temporarily unavailable
3053548 [main] bash5 674 dofork: child -1 - forked process 28664 died 
unexpectedly, retry 0, exit code 0xC135, errno 11
bash5: fork: retry: Resource temporarily unavailable
7078151 [main] bash5 674 dofork: child -1 - forked process 59624 died 
unexpectedly, retry 0, exit code 0xC135, errno 11
bash5: fork: retry: Resource temporarily unavailable
15108745 [main] bash5 674 dofork: child -1 - forked process 51456 died 
unexpectedly, retry 0, exit code 0xC135, errno 11
bash5: fork: Resource temporarily unavailable
bash5-5.1$ /usr/bin/hostname
23539687 [main] bash5 674 dofork: child -1 - forked process 55544 died 
unexpectedly, retry 0, exit code 0xC135, errno 11
bash5: fork: retry: Resource temporarily unavailable
24564456 [main] bash5 674 dofork: child -1 - forked process 67084 died 
unexpectedly, retry 0, exit code 0xC135, errno 11
bash5: fork: retry: Resource temporarily unavailable
26592885 [main] bash5 674 dofork: child -1 - forked process 16288 died 
unexpectedly, retry 0, exit code 0xC135, errno 11
bash5: fork: retry: Resource temporarily unavailable
30618645 [main] bash5 674 dofork: child -1 - forked process 28416 died 
unexpectedly, retry 0, exit code 0xC135, errno 11
bash5: fork: retry: Resource temporarily unavailable
38648818 [main] bash5 674 dofork: child -1 - forked process 26696 died 
unexpectedly, retry 0, exit code 0xC135, errno 11
bash5: fork: Resource temporarily unavailable
bash5-5.1$ echo "PATH=$PATH"
PATH=/usr/local/bin:/usr/bin:/cygdrive/c/Program 
Files/BellSoft/LibericaJRE-8/bin:/cygdrive/c/Program 
Files/Documentum/Shared:/cygacl/v/goodfs/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/c/WINDOWS/System32/OpenSSH:/cygdrive/c/Program
 Files (x86)/Intel/Intel(R) Management Engine 
Components/DAL:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine 
Components/DAL:/cygdrive/c/Program 
Files/nodejs:/cygdrive/c/progs/apache-maven-3/bin:/cygdrive/c/Program 
Files/Cloud Foundry:/cygdrive/c/progs/git-for-windows/cmd:/cygdrive/c/Program 
Files/Docker/Docker/resources/bin:/cygdrive/c/ProgramData/DockerDesktop/version-bin:/cygdrive/c/Users/basin/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Users/basin/AppData/Roaming/npm
bash5-5.1$ pwd
/home/basin
bash5-5.1$

Good:

C:\cygwin\bin>C:\cygwin\bin\bash5 -login

basin@basin ~
$ /usr/bin/hostname
basin

basin@basin ~
$ echo "PATH=$PATH"

PATH=/home/basin/.local/bin:/opt/wrappers/bin:/home/basin/perl5/bin:/usr/local/bin:/usr/bin:/cygdrive/c/Program
 Files/BellSoft/LibericaJRE-8/bin:/cygdrive/c/Program 
Files/Documentum/Shared:/cygacl/v/goodfs/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/c/WINDOWS/System32/OpenSSH:/cygdrive/c/Program
 Files (x86)/Intel/Intel(R) Management Engine 
Components/DAL:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine 
Components/DAL:/cygdrive/c/Program 
Files/nodejs:/cygdrive/c/progs/apache-maven-3/bin:/cygdrive/c/Program 
Files/Cloud Foundry:/cygdrive/c/progs/git-for-windows/cmd:/cygdrive/c/Program 
Files/Docker/Docker/resources/bin:/cygdrive/c/ProgramData/DockerDesktop/version-bin:/cygdrive/c/Users/basin/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Users/basin/AppData/Roaming/npm

basin@basin ~
$ pwd
/home/basin

basin@basin ~



-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


no regular expressions in less

2021-07-21 Thread Basin Ilya via Cygwin
Hi list.
I've just noticed that regexp search works identically to exact match search in 
less and it prints this:

$ /usr/bin/less --version
less 581.2 (no regular expressions)
Copyright (C) 1984-2021  Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Home page: https://greenwoodsoftware.com/less

How to solve this?

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple