mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
* 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:
parent
5864284071
commit
8c4a0aa3c0
@ -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.
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user