Skip to content

xASL_system #845

@HenkMutsaerts

Description

@HenkMutsaerts

Description

Inspired by issue 88 and xASL_adm_UnixPath, I suggest we create a single xASL_system function that can always be used to include:

  • WSL support
  • Deployment support (but with/without compilation should work similarly)
  • escaping whitespace & other (semi-)illegal characters (both in Windows & Unix-like)
  • other functionality in xASL_adm_UnixPath
  • Solve for xASL_SysMove the following comment to issue 88: xASL_SysMove Error #88 (comment)
  • Add Linux initialization such as source ~./bashrc that may initialize some things needed for e.g., git to run properly (if another git version is specified in this startup script that is then not found by Matlab when performing system calls, e.g., for git pulling from Matlab).

See also HERE

I've copied this from the original issue #172, and closed it as duplicate, as Michael here took a different stab at this than the original idea :) (sorry @MichaelStritt for the misunderstanding :)

  • I've now created xASL_system to initialise bash or zsh (depending on Linux or macOS), which should enable e.g., git cloning within a system call from Matlab.
  • I've adapted xASL_qc_TestExploreASL accordingly

Requirements

Optional: add feature requirements here

How to test

Optional: insert description about how to test the code changes here

Release notes

New xASL_system function for all command line calls.

Metadata

Metadata

Labels

featureNew feature, enhancement or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions