mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +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>
|
2003-07-23 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* lib/mc.lib: Add more "end" and "home" sequences for xterm.
|
* lib/mc.lib: Add more "end" and "home" sequences for xterm.
|
||||||
|
@ -36,7 +36,8 @@ shell_patterns=0 # expression type
|
|||||||
unset LANG
|
unset LANG
|
||||||
unset LANGUAGE
|
unset LANGUAGE
|
||||||
LC_ALL=
|
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
|
cat >>%b <<EOF
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
# Description:
|
# Description:
|
||||||
@ -127,7 +128,8 @@ a sub ()
|
|||||||
unset LANG
|
unset LANG
|
||||||
unset LANGUAGE
|
unset LANGUAGE
|
||||||
LC_ALL=
|
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
|
cat >>%b <<EOF
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
# Description:
|
# Description:
|
||||||
@ -219,7 +221,8 @@ a sub ()
|
|||||||
unset LANG
|
unset LANG
|
||||||
unset LANGUAGE
|
unset LANGUAGE
|
||||||
LC_ALL=
|
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
|
cat >> %b <<EOF
|
||||||
/********************************************************************
|
/********************************************************************
|
||||||
* Description:
|
* Description:
|
||||||
@ -420,7 +423,8 @@ a Author description header
|
|||||||
unset LANG
|
unset LANG
|
||||||
unset LANGUAGE
|
unset LANGUAGE
|
||||||
LC_ALL=
|
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
|
cat >>%b <<EOF
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Description:
|
Description:
|
||||||
@ -440,7 +444,8 @@ a Author description header
|
|||||||
#----------------------- Begin common section ---------------------------------
|
#----------------------- Begin common section ---------------------------------
|
||||||
I Insert `Changelog' string
|
I Insert `Changelog' string
|
||||||
DATE="`date +%%Y-%%m-%%d`"
|
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>"
|
EMAIL="<$REPLYTO>"
|
||||||
echo "$DATE $AUTHOR $EMAIL" >%b
|
echo "$DATE $AUTHOR $EMAIL" >%b
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user