[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
force does not work with cp
From: |
David |
Subject: |
force does not work with cp |
Date: |
Fri, 20 Apr 2001 12:42:41 -0600 |
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu'
-DCONF_VENDOR='redhat' -DSHELL -DHAVE_CONFIG_H -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -I. -I. -I./include -I./lib -I/usr/include -O2
-march=i386 -mcpu=i686
uname output: Linux Blackhand.Anthrax 2.2.17-14 #1 Mon Feb 5 15:25:12 EST 2001
i586 unknown
Machine Type: i386-redhat-linux-gnu
Bash Version: 2.04
Patch Level: 11
Release Status: release
Description:
[Detailed description of the problem, suggestion, or complaint.]
#! /usr/local/bin/bash
set +o noclobber
tf1=DELETE-ME-TEST-FILE-1
tf2=DELETE-ME-TEST-FILE-2
tf3=DELETE-ME-TEST-FILE-3
echo "tf1" > $tf1
echo "tf2tf2" > $tf2
echo "tf3tf3tf3" > $tf3
cat $tf1
cat $tf2
cp --force $tf1 $tf2
echo "copy forced"
cat $tf1
cat $tf2
cp $tf3 $tf2
echo "copy not forced"
cat $tf2
cat $tf3
rm -f DELETE-ME-TEST-FILE-*
set -o noclobber
### Output, bash 1
### Bluebeard dajo ~ source ./TRASH
### tf1
### tf2tf2
### copy forced
### tf1
### tf1
### cp: overwrite `DELETE-ME-TEST-FILE-2'? y
### copy not forced
### tf3tf3tf3
### tf3tf3tf3
### Bluebeard dajo ~
### Output, bash 2.04-11
### Blackhand dajo ~ source ./TRASH
### tf1
### tf2tf2
### cp: overwrite `DELETE-ME-TEST-FILE-2'? y
### copy forced
### tf1
### tf1
### cp: overwrite `DELETE-ME-TEST-FILE-2'? y
### copy not forced
### tf3tf3tf3
### tf3tf3tf3
### Blackhand dajo ~
Repeat-By:
[Describe the sequence of events that causes the problem
to occur.]
Fix:
[Description of how to fix the problem. If you don't know a
fix for the problem, don't include this section.]
- force does not work with cp,
David <=