aboutsummaryrefslogtreecommitdiffstats
path: root/pars.sh
diff options
context:
space:
mode:
authorJames Pannacciulli <jpnc@jpnc.info>2017-09-16 20:40:29 -0700
committerJames Pannacciulli <jpnc@jpnc.info>2017-09-16 20:40:29 -0700
commite04970780bfd9e3b9dc96f90515abba4ae6de605 (patch)
tree74ca29ec54dfeed4d315e070b371a543fbd35bbe /pars.sh
parent9cab75803eb83b09b914f50b4f401671e203fa46 (diff)
downloadparssh-e04970780bfd9e3b9dc96f90515abba4ae6de605.tar.gz
parssh-e04970780bfd9e3b9dc96f90515abba4ae6de605.tar.bz2
unique savecmd bookends for parseability
Diffstat (limited to 'pars.sh')
-rw-r--r--pars.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pars.sh b/pars.sh
index 4660517..2c4020f 100644
--- a/pars.sh
+++ b/pars.sh
@@ -84,14 +84,14 @@ _parssh.out () {
_parssh.savecmd () {
CMDLINE=$(fc -ln -0)
CMDLINE="${CMDLINE#[[:space:]][[:space:]]}"
- printf "### ###\n"
+ printf "### # ##\n"
printf "### %s: %s\n"\
date "$(date +%F@%R%z)"\
user "$USER($UID)"\
pwd "$PWD"\
cmdline "$CMDLINE"
printf "### BEGIN parssh remote commands ###\n"
- printf "%s\n### END parssh remote commands ###\n### ###\n"\
+ printf "%s\n### END parssh remote commands ###\n### ## #\n"\
"$@"
}