Closed SkUrRiEr closed 9 years ago
Thanks for the contribution, looks like a good way of implementing the help function.
But it seems to break under certain versions of sed:
$ sed --version
GNU sed version 4.2.1
$ ./bocker help
Create an image:
./bocker init <image_directory>
List images:
./bocker images
Create a container:
./bocker run <image_id> <command>
List containers:
./bocker ps
View logs from a container:
./bocker logs <container_id>
Commit a container to the image:
./bocker commit <container_id> <image_id>
Delete an image or container:
./bocker rm <image_id or container_id>
Display this message:
./bocker help
$ sed --version
sed (GNU sed) 4.2.2
$ ./bocker help
sed: -e expression #1, char 27: unknown option to `s'
Any ideas?
Argh. I'll try to figure this one out. It might be some crazy quoting issue.
Even weirder: My sed is 4.2.2!!!
Ok, I've come up with a "hack" that should fix this, unless somehow you've got exclamation marks in your path (which is going to cause you even more problems, but hey) so I'll close this and submit a new request with the new commits.
Or github could do that for me by automatically updating this pull request. I had no idea it'd do that, but what the heck.
Merged! Thanks again :smile:
Hey,
GregKH posted this on Google+ and I couldn't help noticing that you could save 6 lines by doing the command documentation in a much more line-efficient manner.
This:
I'm not overly fussed if you pull or not, but this might give you just enough more lines to implement that next big feature you're thinking about.
Thanks,
Julian Calaby