From 226bebaab5344501c1d78b74907cc8e60647b1d7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 3 Apr 2015 17:27:21 +0200 Subject: add readme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- README | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..692ac67 --- /dev/null +++ b/README @@ -0,0 +1,12 @@ +A command that lets you start another command with any argv[0]. + + +`exec-as bash -bash` will run the first program in $PATH +named bash, and set argv[0] to -bash (making it a login +shell.) You can add addition argument as needed. + + +Note that to actually exec rather than then fork–exec:ing +you need to type `exec exec-as` instead of `exec-as`, as +the shell would otherwise fork first. + -- cgit v1.2.3-70-g09d2