Bug 224363 - csh history should not modify >&
Summary: csh history should not modify >&
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-15 10:01 UTC by Wolfram Schneider
Modified: 2017-12-15 10:01 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Schneider freebsd_committer 2017-12-15 10:01:20 UTC
I run on a VM:

$ time make buildkernel KERNCONF=GENERIC-NODEBUG >& log.nodebug

later I wanted to do the same on an other VM. I checked the history, did a copy and paste of the history output of the shell:

$ time make buildkernel KERNCONF=GENERIC-NODEBUG > & log.nodebug

and it failed due the space between ">" and "&", which should be ">&"
I never typed "> &" with a space, this was the csh.

The first VM runs with csh, the second with bash. The bash does not like "> &", same for the zsh.

I think that the csh history should not insert a space between ">&".

How to repeat:

csh% date >& /dev/null
csh% history | tail -2
   298 17:46 date > & /dev/null
   299 17:46 history | tail -2