* lib/cedit.menu: Avoid using "id -u", it doesn't work on

Solaris.  From Andrew V. Samoilov <andrew@email.zp.ua>
This commit is contained in:
Pavel Roskin 2003-08-02 23:01:51 +00:00
parent 5864284071
commit 8c4a0aa3c0
2 changed files with 15 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2003-08-02 Pavel Roskin <proski@gnu.org>
* lib/cedit.menu: Avoid using "id -u", it doesn't work on
Solaris. From Andrew V. Samoilov <andrew@email.zp.ua>
2003-07-23 Pavel Roskin <proski@gnu.org>
* lib/mc.lib: Add more "end" and "home" sequences for xterm.

View File

@ -36,7 +36,8 @@ shell_patterns=0 # expression type
unset LANG
unset LANGUAGE
LC_ALL=
AUTHOR="`awk -F: /^\`id -un\`:/'{print($5)}' /etc/passwd`"
MY_UID="`id | sed 's/^.*uid=\([^(]*\).*$/\1/'`"
AUTHOR="`awk -F: '$3 == '$MY_UID' {print $5}' /etc/passwd`"
cat >>%b <<EOF
#----------------------------------------------------------------------
# Description:
@ -127,7 +128,8 @@ a sub ()
unset LANG
unset LANGUAGE
LC_ALL=
AUTHOR="`awk -F: /^\`id -un\`:/'{print($5)}' /etc/passwd`"
MY_UID="`id | sed 's/^.*uid=\([^(]*\).*$/\1/'`"
AUTHOR="`awk -F: '$3 == '$MY_UID' {print $5}' /etc/passwd`"
cat >>%b <<EOF
#----------------------------------------------------------------------
# Description:
@ -219,7 +221,8 @@ a sub ()
unset LANG
unset LANGUAGE
LC_ALL=
AUTHOR="`awk -F: /^\`id -un\`:/'{print($5)}' /etc/passwd`"
MY_UID="`id | sed 's/^.*uid=\([^(]*\).*$/\1/'`"
AUTHOR="`awk -F: '$3 == '$MY_UID' {print $5}' /etc/passwd`"
cat >> %b <<EOF
/********************************************************************
* Description:
@ -420,7 +423,8 @@ a Author description header
unset LANG
unset LANGUAGE
LC_ALL=
AUTHOR="`awk -F: /^\`id -un\`:/'{print($5)}' /etc/passwd`"
MY_UID="`id | sed 's/^.*uid=\([^(]*\).*$/\1/'`"
AUTHOR="`awk -F: '$3 == '$MY_UID' {print $5}' /etc/passwd`"
cat >>%b <<EOF
----------------------------------------------------------------------
Description:
@ -440,7 +444,8 @@ a Author description header
#----------------------- Begin common section ---------------------------------
I Insert `Changelog' string
DATE="`date +%%Y-%%m-%%d`"
AUTHOR="`awk -F: /^\`id -un\`:/'{print($5)}' /etc/passwd`"
MY_UID="`id | sed 's/^.*uid=\([^(]*\).*$/\1/'`"
AUTHOR="`awk -F: '$3 == '$MY_UID' {print $5}' /etc/passwd`"
EMAIL="<$REPLYTO>"
echo "$DATE $AUTHOR $EMAIL" >%b