view bin/interp @ 12247:31417d39b4f5 draft

<b_jonas> addwhatis t(1hackeso) - run a command with the working directory set to /hackenv
author HackEso <hackeso@esolangs.org>
date Thu, 05 Dec 2019 23:48:53 +0000
parents 8e2e8092500d
children
line wrap: on
line source

#!/bin/bash
CMD=`echo -n "$1" | cut -d' ' -f1`
ARG="$(echo -n "$1" | cut -d' ' -f2-)"
exec $HACKENV/ibin/$CMD "$ARG$2"