NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/39709: improvements for '/bin/sh -x'



>Number:         39709
>Category:       bin
>Synopsis:       improvements for '/bin/sh -x'
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 05 16:10:00 +0000 2008
>Originator:     cheusov%tut.by@localhost
>Release:        NetBSD 4.0_STABLE
>Organization:
>Environment:
System: NetBSD chen.chizhovka.net 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) #2: 
Wed Sep 24 23:57:38 EEST 2008 
cheusov%chen.chizhovka.net@localhost:/srv/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
For debugging purposes I think NetBSD's /bin/sh should be improved.
See example below.

   0 ~>cat /home/cheusov/tmp/1.sh        
   #!/bin/sh
   var=1
   echo "$var" aaa 'bbb and ccc' "const"
   0 ~>/bin/sh -x /home/cheusov/tmp/1.sh
   + var=1
   + echo 1 aaa bbb and ccc const
   1 aaa bbb and ccc const
   0 ~>bash -x /home/cheusov/tmp/1.sh
   + var=1
   + echo 1 aaa 'bbb and ccc' const
   1 aaa bbb and ccc const
   0 ~>zsh -x /home/cheusov/tmp/1.sh
   +/home/cheusov/tmp/1.sh:2> var=1
   +/home/cheusov/tmp/1.sh:3> echo 1 aaa 'bbb and ccc' const
   1 aaa bbb and ccc const
   0 ~>

In my view it is very important for debugging to see quoted tokens
with spaces inside.  Output of bash and zsh looks very good ('bbb and ccc').

>Fix:

Unknown


Home | Main Index | Thread Index | Old Index