Re: Pass argument to function

2023-03-10 Thread Brandon Booth
Unquoting worked! I spent so much time trying different variations and this worked: (capture ,(string-append "docker inspect " str))) Thanks. Brandon

Pass argument to function

2023-03-10 Thread Brandon Booth
I'm trying to learn Chicken and having issues. I'm trying to create a function that takes a docker container name and runs "docker inspect [container]." This works: (define test (capture "docker inspect hello-world")) This works: (define (str-concat str) (string-append "docker inspect " str)) T