changeset 10544:4d6bdc52912d

<oerjan> sled bin/#//3,$cnur "${1#*$sep}"
author HackBot
date Thu, 30 Mar 2017 01:52:28 +0000
parents 87c952d52727
children 614e9788cbd4
files bin/#
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bin/#	Thu Mar 30 01:48:29 2017 +0000
+++ b/bin/#	Thu Mar 30 01:52:28 2017 +0000
@@ -1,4 +1,3 @@
 sep='//`'
 [[ "$1" == ?*"$sep"* ]] || { echo 'Usage: `# <comment>'"$sep"'<command>' >&2 ; exit 1; }
-command="${1#*$sep}"
-"${command%% *}" "${command#* }"
+nur "${1#*$sep}"