~/.profile
- To: debian-user@lists.debian.org
- Cc: peasthope@shaw.ca
- Subject: ~/.profile
- From: peasthope@shaw.ca
- Date: Sun, 1 Jan 2012 14:30:55 -0700
- Message-id: <[🔎] 171057377.59319.38824@heaviside.invalid>
- In-reply-to: <20111221201326.GA30138@hysteria.proulx.com>
- References: <171057234.68576.57886@heaviside.invalid> <20111219184739.GE438@hysteria.proulx.com> <171057235.49702.39796@heaviside.invalid> <20111219222419.GA22616@hysteria.proulx.com> <20111220205521.GJ3296@think.nuvreauspam> <171057237.47530.28404@cantor.invalid> <20111221201326.GA30138@hysteria.proulx.com>
* From: Bob Proulx <bob@proulx.com>
* Date: Wed, 21 Dec 2011 13:13:26 -0700
> Try this portable shell redirection instead:
>
> /home/peter/script IN_MODIFY /home/peter/script >/home/peter/result 2>&1
OK, thanks. First I want to understand which shell is in effect.
> /bin/sh is dash, ...
To confirm.
peter@joule:~$ uname -a
Linux joule 2.6.32-5-686 #1 SMP Mon Oct 3 04:15:24 UTC 2011 i686 GNU/Linux
peter@joule:~$ ls -l `which sh`
lrwxrwxrwx 1 root root 4 Sep 19 15:04 /bin/sh -> dash
> ... executed with /bin/sh which is not bash by default.
Understood; but why does the installer put these and no .dashrc?
peter@joule:~$ ls ~/.*ash*
/home/peter/.bash_history /home/peter/.bash_logout /home/peter/.bashrc
Also,
peter@joule:~$ head --lines=3 ~/.profile
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
Superficially at least, a confusing arrangement!
... Peter E.
--
Telephone 1 360 639 0202. Former telephone 1 360 450 2132.
bcc: peasthope ... shaw.ca
"http://carnot.yi.org/"
"http://members.shaw.ca/peasthope/index.html#Itinerary"
Reply to: