Initialize OS as unix-like system.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(os_object), | intent(inout) | :: | self | OS. |
elemental subroutine initialize_unix(self)
!< Initialize OS as unix-like system.
class(os_object), intent(inout) :: self !< OS.
call self%destroy
self%path_separator = char(47)
self%cp_dir_command = 'cp -r'
self%cp_file_command = 'cp'
self%mkdir_command = 'mkdir -p'
self%rm_dir_command = 'rm -fr'
self%rm_file_command = 'rm -f'
endsubroutine initialize_unix