in reply to perl file permissions

You could also alias vi to run a script that will execute vi, then chmod the file if appropriate. Here's a start:
#!/bin/sh cmdline="" while [ $# -gt 0 ]; do case "$1" in --) break;; [+-]*) cmdline="$cmdline $1"; shift;; *) break;; esac done fn="" if [ $# -gt 0 ]; then fn=$1 fi vi $cmdline $fn ec=$? if [ -n "$fn" -a -f "$fn" ]; then case "$fn" in *.pl) chmod +x "$fn";; esac fi exit $ec

Replies are listed 'Best First'.
Re^2: perl file permissions
by Anonymous Monk on Dec 06, 2007 at 05:07 UTC
    I am very appreciative of this site and all who have responded to help.
    I've experimented with the various suggested methods and I think this one may be the best for me.
    Thank you for your assistance.