a script for those to lazy or board of repeatedly  typing 
nano $(which _some_script_in_path_ )
ect ..  
#path2.sh
# echo(default) full path to any script in $PATH , 
# optionally prefix the cmd_path with other command eg nano/cat/file ect    
 [ -z $dbg ] || set -x ; # 
 _cmd=$1
 _run=${2-echo} # set default to echo
 [ $# -eq 1 ] && shift     # enable extra args
 [ $# -eq 2 ] && shift 2
 cmd_path=$( which $_cmd )
 # run cmd passing  args  
 $_run $cmd_path  "$@"
 #eg
# edit this(or any other) script ( in $PATH )
# path2.sh path2.sh nano
#- print this script
#  path2.sh path2.sh cat
#- debug this script
# path2.sh path2.sh "sh -x"
#- WTF
# export dbg=y path2.sh path2.sh "exec" path2.sh cat
  (obviously) simpler
 (obviously) simpler  yet also
similar in some ways (prefixing & arg juggling ) to : ' a shell repl function ' 
https://forum.tinycorelinux.net/index.php/topic,26193.0.htmlaka * 
https://github.com/mchav/with -  Command prefixing for continuous workflow using a single tool.
*mchav/with requires bash