[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] command doesn't work from script, only command line...
- Subject: [ale] command doesn't work from script, only command line...
- From: christopher at bergeron.com (Christopher Bergeron)
- Date: Sat, 8 Dec 2001 10:58:45 -0500
Does anyone know why this command:
cd `history | grep cd | grep -v grep | tail -n 2 | tail -n 1 | tr -s " " |
cut -f 4 -d " "`
works from the command line, but not from a [verbatim] shell script:
#!/bin/bash
cd `history | grep cd | grep -v grep | tail -n 2 | tail -n 1 | tr -s " " |
cut -f 4 -d " "`
I just named it p (for Previous) so I can switch to the directory I just
came from. It doesn't work though. Any suggestions?
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.