File: multi.sh

package info (click to toggle)
bashdb 3.1.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,252 kB
  • ctags: 117
  • sloc: sh: 4,880; pascal: 3,186; lisp: 484; makefile: 315; ansic: 294
file content (17 lines) | stat: -rwxr-xr-x 516 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!../../bash
# $Id: multi.sh,v 1.1.1.1 2006/01/02 23:34:26 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;