Skip to content

Instantly share code, notes, and snippets.

@banister
Created September 6, 2011 16:46
Show Gist options
  • Save banister/1198126 to your computer and use it in GitHub Desktop.
Save banister/1198126 to your computer and use it in GitHub Desktop.
Changing current directory with `posix_spawnp`
Changing current directory with `posix_spawnp`
```ruby
posix_spawn('sh -c "cd blah ; ls')
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment