Bug 30533

Summary: cyi uses bashism, needs the corresponding shebang
Product: Branch 5.1 Reporter: Ivan Zakharyaschev <imz>
Component: curryAssignee: Ivan Zakharyaschev <imz>
Status: CLOSED WONTFIX QA Contact: QA 5.1 <qa-5.1>
Severity: normal    
Priority: P3 CC: grenka
Version: unspecified   
Hardware: all   
OS: Linux   

Description Ivan Zakharyaschev 2014-12-03 16:41:02 MSK
curry-0.9.11-alt1

There are problems with the interactive REPL interface (arrow keys don't work, "history" command not found):

$ cyi
    _____ __ __
   / ___/ |  / _               Muenster Curry Compiler
  / /     | / | |              Version 0.9.11, Copyright (c) 1998-2007
 / /___  / /  | |
 \____/ /_/   |_|              Type :h for help

/usr/bin/cyi: line 341: history: команда не найдена
Prelude> 

This stems from the script having a wrong shebang (not bash despite relying on bash's features):

$ head /usr/bin/cyi
#! /bin/sh
# cyi.  Generated from cyi.in by configure.
#
# A poor (wo)man's interactive top-level for Curry
#
# $Id: cyi.in 2230 2007-06-06 12:35:43Z wlux $
#
# Copyright (c) 2002-2007, Wolfgang Lux
# See LICENSE for the full license.
#
$
Comment 1 Grigory Ustinov 2018-06-07 18:29:36 MSK
Закопали. Не ушёл дальше 5.1.