summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2002-02-14 19:21:50 +0000
committerluigi <luigi@FreeBSD.org>2002-02-14 19:21:50 +0000
commit042d3e068b3efd9cc4cf0d45751738430a4e8f70 (patch)
treee191b33239373cda64b6c4bb1a9427392f34e1b1 /release
parent4ef7536caad7852149342976b8f3c217dfc46953 (diff)
downloadFreeBSD-src-042d3e068b3efd9cc4cf0d45751738430a4e8f70.zip
FreeBSD-src-042d3e068b3efd9cc4cf0d45751738430a4e8f70.tar.gz
Use { } instead of ( ) for grouping shell commands so that
variable assignments are retained ( () creates a subshell) Reported-by: Michael Bretterklieber <mbretter@inode.at>
Diffstat (limited to 'release')
-rwxr-xr-xrelease/picobsd/build/picobsd16
1 files changed, 8 insertions, 8 deletions
diff --git a/release/picobsd/build/picobsd b/release/picobsd/build/picobsd
index 71b9a28..aad44ee 100755
--- a/release/picobsd/build/picobsd
+++ b/release/picobsd/build/picobsd
@@ -327,14 +327,14 @@ main_dialog() {
fi
done
log $l
- (dialog --menu "Setup the type of configuration" 12 70 5 $l \
- 2> ${c_reply} && set_type "`cat ${c_reply}`" ${SITE} ) || true
+ { dialog --menu "Setup the type of configuration" 12 70 5 $l \
+ 2> ${c_reply} && set_type "`cat ${c_reply}`" ${SITE} ; } || true
;;
I)
- (dialog --menu "Choose your init(8) program" \
+ { dialog --menu "Choose your init(8) program" \
10 70 2 init "Standard init (requires getty)" \
oinit "small init from TinyWare" 2> ${c_reply} \
- && init_name=`cat ${c_reply}` ) || true
+ && init_name=`cat ${c_reply}` ; } || true
;;
K) ${EDITOR} ${MY_TREE}/PICOBSD ;;
@@ -342,23 +342,23 @@ main_dialog() {
E) ${EDITOR} ${MY_TREE}/crunch.conf ;;
S)
- ( dialog --title "MFS Size setup" --inputbox \
+ { dialog --title "MFS Size setup" --inputbox \
"MFS size depends on what you need to put on the MFS image. Typically \
ranges between 820kB (for very small bridge/router images) to \
as much as 2500kB kB for a densely packed image. \
Keep in mind that this memory is \
totally lost to other programs. Usually you want to keep \
this as small as possible. " 10 70 2> ${c_reply} \
- && MFS_SIZE=`cat ${c_reply}` ) || true
+ && MFS_SIZE=`cat ${c_reply}` ; } || true
;;
\$)
- (dialog --title "Site info setup" --inputbox \
+ { dialog --title "Site info setup" --inputbox \
"Please enter the full path to the directory \
containing site-specific setup. \
This directory tree must contain files that replace \
standard ones in floppy.tree/ and mfs.tree/ . " \
- 10 70 2> ${c_reply} && SITE=`cat ${c_reply}` ) || true
+ 10 70 2> ${c_reply} && SITE=`cat ${c_reply}` ; } || true
;;
F)
OpenPOWER on IntegriCloud