I am on Unix and I have a small problem:
In sh-mode console, I enter a variable with read and everything works well, I can retrieve it with echo, but in vim, it does not work. When running this script, read the works and I can enter a value, but as soon as this happens a echo, it makes me a line empty. My code:
Code:#!/bin/sh echo return a value read $ val echo value is: echo $ val


Reply With Quote

Bookmarks