Menu

[291208]: / test / example / subshell.sh  Maximize  Restore  History

Download this file

18 lines (14 with data), 515 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#!../../bash
# $Id: subshell.sh,v 1.1 2008/08/22 18:54:08 rockyb Exp $
# Test debugger handling of lines with multiple commands per line
# and subshells in a line
x=1; y=2; z=3
(builtin cd . ; x=`builtin echo *`; (builtin echo "ho") )
case `builtin echo "testing"; builtin echo 1,2,3`,`builtin echo 1,2,3` in
*c*,-n*) ECHO_N= ECHO_C='
' ECHO_T=' ' ;;
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
(builtin cd . ; x=`builtin echo *`; (builtin echo "ho") )
x=5; y=6;
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.