tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* bourne shell question
@ 1997-04-07 19:49 Morrison, Kathy D.
  0 siblings, 0 replies; 2+ messages in thread
From: Morrison, Kathy D. @ 1997-04-07 19:49 UTC (permalink / raw)
  To: tru64-unix-managers

Hello managers, 

I'm sorry if this is not directly DU related, but am thinking that this
list probably has the answer.

We have an ongoing problem that appears to be the result of a shell
command with the following sh syntax:

command intf.file  > out 2>&1

The error message is /bin/sh:/tmp/filename.out: cannot create


Is it possible that the construct 2>&1 (which duplicates file
descriptors) cannot act correctly if the file is owned by someone else?
The file "filename.out" already exists and was created by another user
(same group, with read, write permissions).

TIA for any clues on this!

Kathy Morrison
morrison@apollo.jhuapl.edu

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Bourne shell question
@ 1999-05-21 20:03 C.Ruhnke
  0 siblings, 0 replies; 2+ messages in thread
From: C.Ruhnke @ 1999-05-21 20:03 UTC (permalink / raw)
  To: tru64-unix-managers

Gurus and wizards,

I am NOT a shell expert (yet!), so I may just be misunderstanding this...

I expect the following script to set the variable mydir to the current
working directory.  If I run it under the Korn shell, it does what
I expect.  If I run it under Bourne shell, then mydir echoes as empty.


#!/usr/bin/ksh
#
# This does not seem to work using sh but does for ksh
#
pwd | read mydir
echo $mydir

The man pages for "read" don't indicate any variation due to shell.
Is this the expected function of "sh" and "ksh"?

--CHRis
-
=============================================================================
Chris H. Ruhnke                         Phone: (314)233-7314
IBM Global Services  M/S S306-6340      FAX  : (314)234-2262
325 J.S. McDonnell Blvd                 Email: Ruhnke@US.ibm.com
Hazelwood, MO 63042

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-05-21 20:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-21 20:03 Bourne shell question C.Ruhnke
  -- strict thread matches above, loose matches on Subject: below --
1997-04-07 19:49 bourne " Morrison, Kathy D.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox