ALT Linux Bugzilla
– Attachment 1394 Details for
Bug 9103
hsh-run не работает без bash
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
hsh-run.patch
hsh-run.patch (text/plain), 1.48 KB, created by
Alexey Gladkov
on 2006-02-17 16:12:41 MSK
(
hide
)
Description:
hsh-run.patch
Filename:
MIME Type:
Creator:
Alexey Gladkov
Created:
2006-02-17 16:12:41 MSK
Size:
1.48 KB
patch
obsolete
>--- hsh-run.fix 2006-02-17 15:37:33 +0300 >+++ hsh-run 2006-02-17 15:45:36 +0300 >@@ -50,6 +50,7 @@ Options: > --rooter run program as pseudoroot; > --save-fakeroot save fakeroot state; > --shell run interactive shell; >+ --shell-prog=SHELL use SHELL as shell. > --x11-timeout=SECONDS how long X11 authorization will be valid; > -x disable X11 forwarding; > -X enable X11 forwarding; >@@ -65,13 +66,14 @@ EOF > exit > } > >-TEMP=`getopt -n $PROG -o x,X,Y,h,q,v,V -l builder,execute:,hasher-priv-dir:,mountpoints:,number:,pty,rooter,save-fakeroot,shell,x11-timeout:,help,quiet,verbose,version -- "$@"` || >+TEMP=`getopt -n $PROG -o x,X,Y,h,q,v,V -l builder,execute:,hasher-priv-dir:,mountpoints:,number:,pty,rooter,save-fakeroot,shell,x11-timeout:,help,quiet,verbose,version,shell-prog: -- "$@"` || > show_usage > eval set -- "$TEMP" > > run_as_rooter= > run_script= > run_shell= >+shell_prog="bash" > > if [ "${0##*/}" = hsh-shell ]; then > run_shell=1 >@@ -105,6 +107,9 @@ while :; do > ;; > --shell) run_shell=1; use_pty=yes; export use_pty > ;; >+ --shell-prog) shift; >+ [ -z "$1" ] || shell_prog="$1" >+ ;; > --x11-timeout) shift; x11_timeout="$1" > ;; > -x) x11_forwarding= >@@ -133,7 +138,7 @@ fi > > if [ -n "$run_shell" ]; then > [ "$#" -eq 0 ] || show_usage 'Too many arguments.' >- set -- -a -bash bash >+ set -- -a -"$shell_prog" "$shell_prog" > fi > > # Either --execute or one more argument, please.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 9103
: 1394