From owner-freebsd-questions@freebsd.org Sun Jun 5 15:54:04 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8EE20B6A9E8 for ; Sun, 5 Jun 2016 15:54:04 +0000 (UTC) (envelope-from baho-utot@columbus.rr.com) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.230]) by mx1.freebsd.org (Postfix) with ESMTP id 59BA411EB for ; Sun, 5 Jun 2016 15:54:03 +0000 (UTC) (envelope-from baho-utot@columbus.rr.com) Received: from [75.187.32.8] ([75.187.32.8:52855] helo=raspberrypi.bildanet.com) by cdptpa-oedge02 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 7F/69-08765-F7744575; Sun, 05 Jun 2016 15:38:39 +0000 Received: from [192.168.1.40] (helo=baho-utot.bildanet.com) by raspberrypi.bildanet.com with esmtp (Exim 4.84) (envelope-from ) id 1b9a8N-0006c1-5k for freebsd-questions@freebsd.org; Sun, 05 Jun 2016 11:38:39 -0400 To: freebsd-questions@freebsd.org From: Baho Utot Subject: sh[it] and What am I missing here? Message-ID: <31b2cfb1-1da8-9262-3f03-d964776c905e@columbus.rr.com> Date: Sun, 5 Jun 2016 11:38:38 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jun 2016 15:54:04 -0000 I have tried this on 11-CURRENT and 10.1 release........... Just doing some scripting ( thought I was using a bourne shell but may scripting was puking) so I came across this........ root@baho-utot:~ # set _ addsuffix anyerror argv () autoexpand autolist ambiguous autorehash csubstnonl cwd /root dirstack /root echo_style bsd edit euid 0 euser root filec gid 0 group wheel history 1000 home /root killring 30 loginsh mail /var/mail/root owd path (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /root/bin) prompt %N@%m:%~ %# prompt2 %R? prompt3 CORRECT>%R (y|n|e|a)? promptchars %# savehist (1000 merge) shell /bin/csh shlvl 1 status 0 tcsh 6.18.01 term xterm tty pts/0 uid 0 user root version tcsh 6.18.01 (Astron) 2012-02-14 (x86_64-amd-FreeBSD) options wide,nls,dl,al,kan,sm,rh,color,filec OK tcsh as I thought OK switch shells root@baho-utot:~ # /bin/sh # set BLOCKSIZE=K EDITOR=vi GROUP=wheel HOME=/root HOST=baho-utot.bildanet.com HOSTTYPE=FreeBSD IFS=' ' LOGNAME=root MACHTYPE=x86_64 MAIL=/var/mail/root OPTIND=1 OSTYPE=FreeBSD PAGER=more PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin PPID=1373 PS1='# ' PS2='> ' PS4='+ ' PWD=/root SHELL=/bin/csh SHLVL=1 TERM=xterm USER=root VENDOR=amd # Why is the SHELL variable still set to /bin/csh After the /bin/sh am I into a bourne shell or what?